EvalWidget.h 754 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef EVALWIDGET_H
  2. #define EVALWIDGET_H
  3. #include <QWidget>
  4. class ProjectInfo;
  5. class QVBoxLayout;
  6. class QLabel;
  7. class EvalWidget : public QWidget
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit EvalWidget(ProjectInfo *proj, QWidget *parent = nullptr);
  12. ProjectInfo *proj() const;
  13. void setProject(ProjectInfo *proj);
  14. int type() const;
  15. void setType(int type);
  16. void setTitle(const QString title);
  17. void initWidgets();
  18. void initLayout();
  19. protected:
  20. ProjectInfo *m_proj = nullptr;
  21. int m_type = 0; // 评估类型
  22. QVBoxLayout *m_layout = nullptr;
  23. QVBoxLayout *m_contentLayout = nullptr;
  24. QLabel *m_title = nullptr;
  25. QWidget *m_seperator = nullptr;
  26. signals:
  27. };
  28. #endif // EVALWIDGET_H