UserView.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef USERVIEW_H
  2. #define USERVIEW_H
  3. #include <QWidget>
  4. class QVBoxLayout;
  5. class QGridLayout;
  6. class QHBoxLayout;
  7. class QLabel;
  8. class PushButton;
  9. class UserView : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit UserView(QWidget *parent = nullptr);
  14. signals:
  15. void signalLogout();
  16. private:
  17. void showEvent(QShowEvent *event) override;
  18. void resizeEvent(QResizeEvent *event) override;
  19. void init();
  20. void initilaize();
  21. void initLayout();
  22. void connectSignalsAndSlots();
  23. void refresh();
  24. private slots:
  25. void slotLogout();
  26. private:
  27. bool m_initilized = false;
  28. QLabel *m_bgLabel = nullptr;
  29. QPixmap pixmap;
  30. QVBoxLayout *m_vBoxLayout = nullptr;
  31. QLabel *m_iconLabel = nullptr;
  32. QGridLayout *m_gridLayout = nullptr;
  33. QLabel *m_accNameLabel = nullptr;
  34. QLabel *m_accValueLabel = nullptr;
  35. QLabel *m_idNameLabel = nullptr;
  36. QLabel *m_idValueLabel = nullptr;
  37. QLabel *m_typeNameLabel = nullptr;
  38. QLabel *m_typeValueLabel = nullptr;
  39. QHBoxLayout *m_hBoxLayout = nullptr;
  40. PushButton *m_confirmButton = nullptr;
  41. };
  42. #endif // USERVIEW_H