QLineEdit to use Qt::ImhSensitiveData input hint on password echo modes
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>
Mon, 2 Jan 2012 14:34:19 +0000 (16:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 3 Jan 2012 13:58:06 +0000 (14:58 +0100)
Change-Id: I6922e41e7e57563f1190f46e0890b71e5c4b7ef4
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
src/widgets/widgets/qlineedit.cpp

index 5b6a413..bd94f07 100644 (file)
@@ -486,9 +486,9 @@ void QLineEdit::setEchoMode(EchoMode mode)
         imHints &= ~Qt::ImhHiddenText;
     }
     if (mode != Normal) {
-        imHints |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText);
+        imHints |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText | Qt::ImhSensitiveData);
     } else {
-        imHints &= ~(Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText);
+        imHints &= ~(Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText | Qt::ImhSensitiveData);
     }
     setInputMethodHints(imHints);
     d->control->setEchoMode(mode);