summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/wlan/keyedit.cpp
blob: 62f89602ede9e81687da5ae4ce439bad9d8ed0cd (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 *)
{
	setEchoMode(Normal);
}

void KeyEdit::focusOutEvent(QFocusEvent *)
{
	setEchoMode(Password);
}