#ifndef PROJECTSTATEWIDGET_H #define PROJECTSTATEWIDGET_H #include 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 &list); signals: private: void initialize(); void initLayout(); void setRowCount(const QList &list); void setItem(int row, int column, QTableWidgetItem *item, const QColor &bgColor); private: QVBoxLayout *m_vBoxLayout = nullptr; QTableWidget *m_projTableWidget = nullptr; }; #endif // PROJECTSTATEWIDGET_H