123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef EVALWIDGET_H
- #define EVALWIDGET_H
- #include <QWidget>
- class ProjectInfo;
- class QVBoxLayout;
- class QLabel;
- class EvalWidget : public QWidget
- {
- Q_OBJECT
- public:
- explicit EvalWidget(ProjectInfo *proj, QWidget *parent = nullptr);
- ProjectInfo *proj() const;
- void setProject(ProjectInfo *proj);
- int type() const;
- void setType(int type);
- void setTitle(const QString title);
- void initWidgets();
- void initLayout();
- protected:
- ProjectInfo *m_proj = nullptr;
- int m_type = 0; // 评估类型
- QVBoxLayout *m_layout = nullptr;
- QVBoxLayout *m_contentLayout = nullptr;
- QLabel *m_title = nullptr;
- QWidget *m_seperator = nullptr;
- signals:
- };
- #endif // EVALWIDGET_H
|