1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #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);
- signals:
- void signalLogout();
- private:
- void showEvent(QShowEvent *event) override;
- void resizeEvent(QResizeEvent *event) override;
- void init();
- void initilaize();
- void initLayout();
- void connectSignalsAndSlots();
- void refresh();
- private slots:
- void slotLogout();
- private:
- bool m_initilized = false;
- QLabel *m_bgLabel = nullptr;
- QPixmap pixmap;
- 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
|