123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef LOGINWIDGET_H
- #define LOGINWIDGET_H
- #include <QWidget>
- class LineEdit;
- class PasswordLineEdit;
- class CheckBox;
- class PushButton;
- class QVBoxLayout;
- class QLabel;
- class QHBoxLayout;
- class LoginWidget : public QWidget
- {
- Q_OBJECT
- public:
- explicit LoginWidget(QWidget *parent = nullptr);
- void setTitle(const QString title);
- private:
- void initialize();
- void initLayout();
- void connectSignalsAndSlots();
- signals:
- void signalLogin();
- void signalCancel();
- private:
- QVBoxLayout *m_vBoxLayout = nullptr;
- QLabel *m_titleLabel = nullptr;
- LineEdit *m_accLineEdit = nullptr;
- PasswordLineEdit *m_pwLineEdit = nullptr;
- QHBoxLayout *m_remLayout = nullptr;
- CheckBox *m_remCheckBox = nullptr;
- QLabel *m_remLabel = nullptr;
- QHBoxLayout *m_buttonLayout = nullptr;
- PushButton *m_loginButton = nullptr;
- PushButton *m_cancelButton = nullptr;
- };
- #endif // LOGINWIDGET_H
|