diff options
author | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2012-01-02 16:40:12 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-03 14:57:36 +0100 |
commit | f9a574aee1afefaa890d5b715605e416e24dc692 (patch) | |
tree | 56f06c2388a0f813ac24e634ece1d83434b20ce0 /tests | |
parent | 9b571bd1c6a00e157aa4375c6598179c7fba7e54 (diff) |
Use Qt::ImhSensitiveData input hint on TextInput with password echo mode
Change-Id: I1e9255af24b51ca42c1e6df7a92664be532ce725
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp b/tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp index f07e8fd8ee..10220a6429 100644 --- a/tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp +++ b/tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp @@ -2178,7 +2178,7 @@ void tst_qquicktextinput::echoMode() QCOMPARE(input->displayText(), input->text()); //Normal ref &= ~Qt::ImhHiddenText; - ref &= ~(Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText); + ref &= ~(Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText | Qt::ImhSensitiveData); QCOMPARE(input->inputMethodHints(), ref); input->setEchoMode(QQuickTextInput::NoEcho); QCOMPARE(input->text(), initial); @@ -2186,12 +2186,12 @@ void tst_qquicktextinput::echoMode() QCOMPARE(input->passwordCharacter(), QLatin1String("*")); //NoEcho ref |= Qt::ImhHiddenText; - ref |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText); + ref |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText | Qt::ImhSensitiveData); QCOMPARE(input->inputMethodHints(), ref); input->setEchoMode(QQuickTextInput::Password); //Password ref |= Qt::ImhHiddenText; - ref |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText); + ref |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText | Qt::ImhSensitiveData); QCOMPARE(input->text(), initial); QCOMPARE(input->displayText(), QLatin1String("********")); QCOMPARE(input->inputMethodHints(), ref); @@ -2202,7 +2202,7 @@ void tst_qquicktextinput::echoMode() input->setEchoMode(QQuickTextInput::PasswordEchoOnEdit); //PasswordEchoOnEdit ref &= ~Qt::ImhHiddenText; - ref |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText); + ref |= (Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText | Qt::ImhSensitiveData); QCOMPARE(input->inputMethodHints(), ref); QCOMPARE(input->text(), initial); QCOMPARE(input->displayText(), QLatin1String("QQQQQQQQ")); |