diff options
author | Robert Griebl <rgriebl@trolltech.com> | 2010-03-04 13:26:24 (GMT) |
---|---|---|
committer | Robert Griebl <rgriebl@trolltech.com> | 2010-03-04 13:45:07 (GMT) |
commit | a0cb1ae902dce0c00dc2de8b92229d66945054c8 (patch) | |
tree | 2757029862e1ef24f0b86fda5eb4b727bd1d520c | |
parent | 1a666089d84cb85ec8e2bda3fe0fff6f2ec2ec4a (diff) | |
download | Qt-a0cb1ae902dce0c00dc2de8b92229d66945054c8.zip Qt-a0cb1ae902dce0c00dc2de8b92229d66945054c8.tar.gz Qt-a0cb1ae902dce0c00dc2de8b92229d66945054c8.tar.bz2 |
Setting ImhHiddenText for NoEcho line edits is not 100% correct, but still way better than fully visible text.
Reviewed-by: axis
-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 94ee4b3..817547c 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; |