feat:初始化wuhan_QT界面代码
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#ifndef PASSWORDMGMTLOGINPAGE_H
|
||||
#define PASSWORDMGMTLOGINPAGE_H
|
||||
|
||||
#include "basepage.h"
|
||||
|
||||
class QLineEdit;
|
||||
class QLabel;
|
||||
|
||||
// ===================== 密码管理登录界面 =====================
|
||||
class PasswordMgmtLoginPage : public BasePage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit PasswordMgmtLoginPage(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_error = nullptr;
|
||||
QString m_value;
|
||||
};
|
||||
|
||||
#endif // PASSWORDMGMTLOGINPAGE_H
|
||||
Reference in New Issue
Block a user