servicepassinputdlg.h
675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef SERVICEPASSINPUTDLG_H
#define SERVICEPASSINPUTDLG_H
#include <QDialog>
#include <QKeyEvent>
#define PASS_WORD "0000"
#define MAX_PASSWORD 4
namespace Ui {
class ServicePassInputDlg;
}
class ServicePassInputDlg : public QDialog
{
Q_OBJECT
void keyPressEvent(QKeyEvent *);
void inputMethodEvent(QInputMethodEvent* event);
QChar m_strInputPass[MAX_PASSWORD+1];
public:
explicit ServicePassInputDlg(QWidget *parent = 0);
~ServicePassInputDlg();
private slots:
void on_ctrBtnOk_clicked();
void on_ctrBtnCancel_clicked();
private:
Ui::ServicePassInputDlg *ui;
int m_nCurInputCount;
};
#endif // SERVICEPASSINPUTDLG_H