QLineEdit to use Qt::ImhSensitiveData input hint on password echo modes
Change-Id: I6922e41e7e57563f1190f46e0890b71e5c4b7ef4 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
This commit is contained in:
parent
68202f646a
commit
bff6cf7b5b
@ -486,9 +486,9 @@ void QLineEdit::setEchoMode(EchoMode mode)
|
|||||||
imHints &= ~Qt::ImhHiddenText;
|
imHints &= ~Qt::ImhHiddenText;
|
||||||
}
|
}
|
||||||
if (mode != Normal) {
|
if (mode != Normal) {
|
||||||
imHints |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText);
|
imHints |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText | Qt::ImhSensitiveData);
|
||||||
} else {
|
} else {
|
||||||
imHints &= ~(Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText);
|
imHints &= ~(Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText | Qt::ImhSensitiveData);
|
||||||
}
|
}
|
||||||
setInputMethodHints(imHints);
|
setInputMethodHints(imHints);
|
||||||
d->control->setEchoMode(mode);
|
d->control->setEchoMode(mode);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user