blob: 13a1c3bc69a8d70f095306c1f866b04f01f10051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "keyedit.h"
#include <qlineedit.h>
KeyEdit::KeyEdit(QWidget* parent, const char* name) :
QLineEdit(parent, name)
{
setEchoMode(Password);
}
KeyEdit::~KeyEdit()
{
}
void KeyEdit::focusInEvent(QFocusEvent *event)
{
setEchoMode(Normal);
}
void KeyEdit::focusOutEvent(QFocusEvent *event)
{
setEchoMode(Password);
}
|