34 lines
736 B
C++
34 lines
736 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 onBack(); // 取消:返回上一界面(密码管理界面)
|
|
void onExit(); // 退出:返回开机密码界面
|
|
|
|
private:
|
|
QLineEdit* m_input = nullptr;
|
|
QLabel* m_hint = nullptr;
|
|
QString m_value;
|
|
};
|
|
|
|
#endif // PASSWORDRESETPAGE_H
|