RegisterWidget.h 986 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef REGISTERWIDGET_H
  2. #define REGISTERWIDGET_H
  3. #include <QWidget>
  4. class LineEdit;
  5. class PasswordLineEdit;
  6. class PushButton;
  7. class QVBoxLayout;
  8. class QLabel;
  9. class QHBoxLayout;
  10. class RegisterWidget : public QWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit RegisterWidget(QWidget *parent = nullptr);
  15. const QString account() const;
  16. const QString password() const;
  17. const QString repeatPassword() const;
  18. void clearInputs();
  19. private:
  20. void initialize();
  21. void initLayout();
  22. void connectSignalsAndSlots();
  23. signals:
  24. void signalConfirm();
  25. void signalCancel();
  26. private:
  27. QVBoxLayout *m_vBoxLayout = nullptr;
  28. QLabel *m_titleLabel = nullptr;
  29. LineEdit *m_accLineEdit = nullptr;
  30. PasswordLineEdit *m_pwLineEdit = nullptr;
  31. PasswordLineEdit *m_pw2LineEdit = nullptr;
  32. QHBoxLayout *m_buttonLayout = nullptr;
  33. PushButton *m_confirmButton = nullptr;
  34. PushButton *m_cancelButton = nullptr;
  35. };
  36. #endif // REGISTERWIDGET_H