1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef EXPERTMANAGEVIEW_H
- #define EXPERTMANAGEVIEW_H
- #include <QWidget>
- class ExpertInfoWidget;
- class ExpertListWidget;
- class PushButton;
- class SearchLineEdit;
- class QVBoxLayout;
- class QHBoxLayout;
- class QLabel;
- ///
- /// \brief The ExpertManageView class
- /// 用户管理页面
- class ExpertManageView : public QWidget
- {
- Q_OBJECT
- public:
- explicit ExpertManageView(QWidget *parent = nullptr);
- signals:
- private:
- void initialize();
- void initLayout();
- void connectSignalsAndSlots();
- void setListButtonHidden(bool hidden);
- void showExpertInfo();
- private slots:
- void slotAddExpertClicked();
- void slotDetailClicked();
- void slotDeleteClicked();
- void slotListSelectionChanged();
- void slotListItemDoubleClicked();
- private:
- QVBoxLayout *m_vBoxLayout = nullptr;
- QLabel *m_titleLabel = nullptr;
- QHBoxLayout *m_hBoxLayout = nullptr;
- SearchLineEdit *m_searchLineEdit = nullptr;
- PushButton *m_addExpertPushButton = nullptr;
- PushButton *m_detailPushButton = nullptr;
- PushButton *m_deletePushButton = nullptr;
- ExpertInfoWidget *m_expertInfoWidget = nullptr;
- ExpertListWidget *m_expertListWidget = nullptr;
- };
- #endif // EXPERTMANAGEVIEW_H
|