33 lines
623 B
C++
33 lines
623 B
C++
#ifndef PASSWORDRESETPAGE_H
|
|
#define PASSWORDRESETPAGE_H
|
|
|
|
#include "base.h"
|
|
|
|
class QLineEdit;
|
|
class QLabel;
|
|
|
|
// ===================== 密码重置界面 =====================
|
|
class PasswordResetPage : public BasePage
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit PasswordResetPage(AppContext* ctx, QWidget* parent = nullptr);
|
|
|
|
void clearInput();
|
|
|
|
protected:
|
|
bool eventFilter(QObject* obj, QEvent* ev) override;
|
|
|
|
private slots:
|
|
void onInputClicked();
|
|
void onConfirm();
|
|
void onCancel();
|
|
|
|
private:
|
|
QLineEdit* m_input = nullptr;
|
|
QLabel* m_hint = nullptr;
|
|
QString m_value;
|
|
};
|
|
|
|
#endif // PASSWORDRESETPAGE_H
|