12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef REGISTERWIDGET_H
- #define REGISTERWIDGET_H
- #include <QWidget>
- class LineEdit;
- class PasswordLineEdit;
- class PushButton;
- class QVBoxLayout;
- class QLabel;
- class QHBoxLayout;
- class RegisterWidget : public QWidget
- {
- Q_OBJECT
- public:
- explicit RegisterWidget(QWidget *parent = nullptr);
- const QString account() const;
- const QString password() const;
- const QString repeatPassword() const;
- void clearInputs();
- private:
- void initialize();
- void initLayout();
- void connectSignalsAndSlots();
- signals:
- void signalConfirm();
- void signalCancel();
- private:
- QVBoxLayout *m_vBoxLayout = nullptr;
- QLabel *m_titleLabel = nullptr;
- LineEdit *m_accLineEdit = nullptr;
- PasswordLineEdit *m_pwLineEdit = nullptr;
- PasswordLineEdit *m_pw2LineEdit = nullptr;
- QHBoxLayout *m_buttonLayout = nullptr;
- PushButton *m_confirmButton = nullptr;
- PushButton *m_cancelButton = nullptr;
- };
- #endif // REGISTERWIDGET_H
|