Diffstat (limited to 'noncore/settings/networksettings/wlan/keyedit.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/keyedit.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/wlan/keyedit.cpp b/noncore/settings/networksettings/wlan/keyedit.cpp new file mode 100644 index 0000000..ad9ecae --- a/dev/null +++ b/noncore/settings/networksettings/wlan/keyedit.cpp | |||
@@ -0,0 +1,21 @@ | |||
1 | #include "keyedit.h" | ||
2 | #include <qlineedit.h> | ||
3 | |||
4 | KeyEdit::KeyEdit(QWidget* parent, const char* name) : | ||
5 | QLineEdit(parent, name) | ||
6 | { | ||
7 | } | ||
8 | |||
9 | KeyEdit::~KeyEdit() | ||
10 | { | ||
11 | } | ||
12 | |||
13 | void KeyEdit::focusInEvent(QFocusEvent *event) | ||
14 | { | ||
15 | setEchoMode(Normal); | ||
16 | } | ||
17 | |||
18 | void KeyEdit::focusOutEvent(QFocusEvent *event) | ||
19 | { | ||
20 | setEchoMode(Password); | ||
21 | } | ||