123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef PROJECTSTATEWIDGET_H
- #define PROJECTSTATEWIDGET_H
- #include <QWidget>
- class ProjectInfo;
- class QTableWidget;
- class QVBoxLayout;
- class QTableWidgetItem;
- ///
- /// \brief The ProjectStateWidget class
- /// 工程评估状态表
- class ProjectStateWidget : public QWidget
- {
- Q_OBJECT
- public:
- explicit ProjectStateWidget(QWidget *parent = nullptr);
- void showProjects(const QList<ProjectInfo *> &list);
- signals:
- private:
- void initialize();
- void initLayout();
- void setRowCount(const QList<ProjectInfo *> &list);
- void setItem(int row, int column, QTableWidgetItem *item, const QColor &bgColor);
- private:
- QVBoxLayout *m_vBoxLayout = nullptr;
- QTableWidget *m_projTableWidget = nullptr;
- };
- #endif // PROJECTSTATEWIDGET_H
|