summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2010-03-04 13:26:24 (GMT)
committerRobert Griebl <rgriebl@trolltech.com>2010-03-04 13:45:07 (GMT)
commita0cb1ae902dce0c00dc2de8b92229d66945054c8 (patch)
tree2757029862e1ef24f0b86fda5eb4b727bd1d520c /src/gui/widgets
parent1a666089d84cb85ec8e2bda3fe0fff6f2ec2ec4a (diff)
downloadQt-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
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qlineedit.cpp2
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;