servicepassinputdlg.h
827 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
40
41
42
43
44
45
46
47
#ifndef SERVICEPASSINPUTDLG_H
#define SERVICEPASSINPUTDLG_H
#include <QDialog>
#include <QKeyEvent>
#define PASS_WORD "00000000"
#define MAX_PASSWORD 8
namespace Ui {
class ServicePassInputDlg;
}
class ServicePassInputDlg : public QDialog
{
Q_OBJECT
QChar m_strInputPass[MAX_PASSWORD+1];
public:
explicit ServicePassInputDlg(QWidget *parent = 0);
~ServicePassInputDlg();
private slots:
void on_ctrBtnOk_clicked();
void on_ctrBtnCancel_clicked();
void keyCancel_clicked();
void keyEnter_clicked();
void backspaceKeyPressEvent();
void keyboardInputEvent(QString strIn);
protected:
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
private:
Ui::ServicePassInputDlg *ui;
int m_nCurInputCount;
};
#endif // SERVICEPASSINPUTDLG_H