ProjectStateWidget.h 792 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef PROJECTSTATEWIDGET_H
  2. #define PROJECTSTATEWIDGET_H
  3. #include <QWidget>
  4. class EngineerInfo;
  5. class QTableWidget;
  6. class QVBoxLayout;
  7. class QTableWidgetItem;
  8. ///
  9. /// \brief The ProjectStateWidget class
  10. /// 工程评估状态表
  11. class ProjectStateWidget : public QWidget
  12. {
  13. Q_OBJECT
  14. public:
  15. static int rowCount(EngineerInfo *proj);
  16. explicit ProjectStateWidget(QWidget *parent = nullptr);
  17. void showProjects(QList<EngineerInfo *> list);
  18. signals:
  19. private:
  20. void initialize();
  21. void initLayout();
  22. void setRowCount(QList<EngineerInfo *> list);
  23. void setItem(int row, int column, QTableWidgetItem *item, QColor bgColor);
  24. private:
  25. QVBoxLayout *m_vBoxLayout = nullptr;
  26. QTableWidget *m_projTableWidget = nullptr;
  27. };
  28. #endif // PROJECTSTATEWIDGET_H