123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef USERVIEW_H
- #define USERVIEW_H
- #include <QWidget>
- class QVBoxLayout;
- class QGridLayout;
- class QHBoxLayout;
- class QLabel;
- class PushButton;
- class UserView : public QWidget
- {
- Q_OBJECT
- public:
- explicit UserView(QWidget *parent = nullptr);
- void paintEvent(QPaintEvent *event) override;
- signals:
- void signalLogout();
- private:
- void initilaize();
- void initLayout();
- void connectSignalsAndSlots();
- void refresh();
- private slots:
- void slotLogout();
- private:
- /// 图标,版本号,更新内容,构建时间,当前环境,版权声明
- QVBoxLayout *m_vBoxLayout = nullptr;
- QLabel *m_iconLabel = nullptr;
- QGridLayout *m_gridLayout = nullptr;
- QLabel *m_accNameLabel = nullptr;
- QLabel *m_accValueLabel = nullptr;
- QLabel *m_idNameLabel = nullptr;
- QLabel *m_idValueLabel = nullptr;
- QLabel *m_typeNameLabel = nullptr;
- QLabel *m_typeValueLabel = nullptr;
- QHBoxLayout *m_hBoxLayout = nullptr;
- PushButton *m_confirmButton = nullptr;
- };
- #endif // USERVIEW_H
|