summaryrefslogtreecommitdiff
path: root/src/gui/widgets/qlineedit.cpp
diff options
context:
space:
mode:
authorRobert Griebl <rgriebl@trolltech.com>2010-03-04 14:26:24 +0100
committerRobert Griebl <rgriebl@trolltech.com>2010-03-04 14:45:07 +0100
commita0cb1ae902dce0c00dc2de8b92229d66945054c8 (patch)
tree2757029862e1ef24f0b86fda5eb4b727bd1d520c /src/gui/widgets/qlineedit.cpp
parent1a666089d84cb85ec8e2bda3fe0fff6f2ec2ec4a (diff)
downloadqt4-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.cpp2
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;