LoginWidget.h 968 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef LOGINWIDGET_H
  2. #define LOGINWIDGET_H
  3. #include <QWidget>
  4. class LineEdit;
  5. class PasswordLineEdit;
  6. class CheckBox;
  7. class PushButton;
  8. class QVBoxLayout;
  9. class QLabel;
  10. class QHBoxLayout;
  11. class LoginWidget : public QWidget
  12. {
  13. Q_OBJECT
  14. public:
  15. explicit LoginWidget(QWidget *parent = nullptr);
  16. void setTitle(const QString title);
  17. private:
  18. void initialize();
  19. void initLayout();
  20. void connectSignalsAndSlots();
  21. signals:
  22. void signalLogin();
  23. void signalCancel();
  24. private:
  25. QVBoxLayout *m_vBoxLayout = nullptr;
  26. QLabel *m_titleLabel = nullptr;
  27. LineEdit *m_accLineEdit = nullptr;
  28. PasswordLineEdit *m_pwLineEdit = nullptr;
  29. QHBoxLayout *m_remLayout = nullptr;
  30. CheckBox *m_remCheckBox = nullptr;
  31. QLabel *m_remLabel = nullptr;
  32. QHBoxLayout *m_buttonLayout = nullptr;
  33. PushButton *m_loginButton = nullptr;
  34. PushButton *m_cancelButton = nullptr;
  35. };
  36. #endif // LOGINWIDGET_H