12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #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
|