2016-01-19 16:56:35 +01:00
|
|
|
#ifndef PASSWORDDIALOG_H
|
|
|
|
#define PASSWORDDIALOG_H
|
|
|
|
|
2016-01-31 20:19:22 +01:00
|
|
|
#include "masterdialog.h"
|
2016-01-19 16:56:35 +01:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class PasswordDialog;
|
|
|
|
}
|
|
|
|
|
2016-01-31 20:19:22 +01:00
|
|
|
class PasswordDialog : public MasterDialog {
|
2016-01-19 16:56:35 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-01-26 16:58:47 +05:00
|
|
|
explicit PasswordDialog(QWidget *parent = nullptr, const QString &labelText = QString(),
|
2016-01-23 12:15:56 +01:00
|
|
|
bool doubleEnterPassword = false);
|
2016-01-19 16:56:35 +01:00
|
|
|
~PasswordDialog();
|
|
|
|
QString password();
|
|
|
|
|
2016-01-23 12:15:56 +01:00
|
|
|
private slots:
|
|
|
|
bool checkIfPasswordsAreEqual();
|
|
|
|
void on_passwordLineEdit_textChanged(const QString &arg1);
|
|
|
|
void on_passwordLineEdit2_textChanged(const QString &arg1);
|
|
|
|
|
2016-01-19 16:56:35 +01:00
|
|
|
private:
|
|
|
|
Ui::PasswordDialog *ui;
|
2016-01-23 12:15:56 +01:00
|
|
|
bool _doubleEnterPassword;
|
2016-01-19 16:56:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PASSWORDDIALOG_H
|