Commit f8551658 authored by Karel Slaný's avatar Karel Slaný

Fixed error in echo mode conversion.

parent 516b91f8
......@@ -42,18 +42,17 @@
* @return Echo mode as defined in QLineEdit.
*/
static
QLineEdit::EchoMode toLineEditEchoMode(
enum Dialogues::EchoMode echoMode)
QLineEdit::EchoMode toLineEditEchoMode(enum Dialogues::EchoMode echoMode)
{
switch (echoMode) {
case Dialogues::EM_NORMAL:
return QLineEdit::Normal;
break;
case Dialogues::EM_PWD:
return QLineEdit::NoEcho;
return QLineEdit::Password;
break;
case Dialogues::EM_NOECHO:
return QLineEdit::Password;
return QLineEdit::NoEcho;
break;
case Dialogues::EM_PWD_ECHOONEDIT:
return QLineEdit::PasswordEchoOnEdit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment