diff options
author | Robert Griebl <rgriebl@trolltech.com> | 2010-03-04 14:26:24 +0100 |
---|---|---|
committer | Robert Griebl <rgriebl@trolltech.com> | 2010-03-04 14:45:07 +0100 |
commit | a0cb1ae902dce0c00dc2de8b92229d66945054c8 (patch) | |
tree | 2757029862e1ef24f0b86fda5eb4b727bd1d520c /src/gui/widgets/qlineedit.cpp | |
parent | 1a666089d84cb85ec8e2bda3fe0fff6f2ec2ec4a (diff) | |
download | qt4-tools-a0cb1ae902dce0c00dc2de8b92229d66945054c8.tar.gz |
Setting ImhHiddenText for NoEcho line edits is not 100% correct, but still way better than fully visible text.
Reviewed-by: axis
Diffstat (limited to 'src/gui/widgets/qlineedit.cpp')
-rw-r--r-- | src/gui/widgets/qlineedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp index 94ee4b3c1a..817547ca7d 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -539,7 +539,7 @@ void QLineEdit::setEchoMode(EchoMode mode) if (mode == (EchoMode)d->control->echoMode()) return; Qt::InputMethodHints imHints = inputMethodHints(); - if (mode == Password) { + if (mode == Password || mode == NoEcho) { imHints |= Qt::ImhHiddenText; } else { imHints &= ~Qt::ImhHiddenText; |