mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-22 01:25:10 -07:00
38 lines
755 B
C++
38 lines
755 B
C++
/**
|
|
* @file dlg_edit_password.h
|
|
* @ingroup AccountDialogs
|
|
*/
|
|
//! \todo Document this file.
|
|
|
|
#ifndef DLG_EDITPASSWORD_H
|
|
#define DLG_EDITPASSWORD_H
|
|
|
|
#include <QDialog>
|
|
#include <QLineEdit>
|
|
|
|
class QLabel;
|
|
class QPushButton;
|
|
class QCheckBox;
|
|
|
|
class DlgEditPassword : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DlgEditPassword(QWidget *parent = nullptr);
|
|
[[nodiscard]] QString getOldPassword() const
|
|
{
|
|
return oldPasswordEdit->text();
|
|
}
|
|
[[nodiscard]] QString getNewPassword() const
|
|
{
|
|
return newPasswordEdit->text();
|
|
}
|
|
private slots:
|
|
void actOk();
|
|
|
|
private:
|
|
QLabel *oldPasswordLabel, *newPasswordLabel, *newPasswordLabel2;
|
|
QLineEdit *oldPasswordEdit, *newPasswordEdit, *newPasswordEdit2;
|
|
};
|
|
|
|
#endif
|