| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
|---|---|
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef LOGGINDIALOG_H |
| 6 | #define LOGGINDIALOG_H |
| 7 | |
| 8 | #include <QDialog> |
| 9 | #include <QLabel> |
| 10 | #include <QLineEdit> |
| 11 | #include <QHBoxLayout> |
| 12 | #include <QVBoxLayout> |
| 13 | |
| 14 | class LogginDialog : public QDialog |
| 15 | { |
| 16 | Q_OBJECT |
| 17 | public: |
| 18 | explicit LogginDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags()); |
| 19 | void setName(const QString &name); |
| 20 | QString name() const; |
| 21 | void setPasswd(const QString &name); |
| 22 | QString passwd() const; |
| 23 | void setTitleText(const QString &name); |
| 24 | QString titleText() const; |
| 25 | |
| 26 | private: |
| 27 | QLabel *titleLabel{nullptr}; |
| 28 | QLineEdit *nameEdit{nullptr}; |
| 29 | QLineEdit *passwdEdit{nullptr}; |
| 30 | QPushButton *pbtOk{nullptr}; |
| 31 | |
| 32 | Q_SIGNALS: |
| 33 | void logginOk(); |
| 34 | }; |
| 35 | |
| 36 | #endif // LOGGINDIALOG_H |
| 37 |