1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef PROJECTVIEW_H
- #define PROJECTVIEW_H
- #include <QWidget>
- class ProjectInfo;
- class QVBoxLayout;
- class QHBoxLayout;
- class QLabel;
- /// 工程视图
- class ProjectView : public QWidget
- {
- Q_OBJECT
- public:
- explicit ProjectView(ProjectInfo *proj = nullptr, QWidget *parent = nullptr);
- void showEvent(QShowEvent *event) override;
- void hideEvent(QHideEvent *event) override;
- ProjectInfo *proj() const;
- void setProject(ProjectInfo *proj);
- signals:
- private:
- void initWidgets();
- void initLayout();
- void connectSigalsAndSlots();
- private:
- ProjectInfo *m_proj = nullptr;
- bool m_initilized = false;
- QHBoxLayout *m_layout = nullptr;
- };
- #endif // PROJECTVIEW_H
|