summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlineedit
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-23 13:14:34 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-07-23 16:12:41 (GMT)
commit2410f261eaa13442baa46537202d31ad26d797e7 (patch)
treeea519b9b8625360edfa4285da1ed6f95f2031cff /tests/auto/qlineedit
parent098be4ffcf4c9ba615332f853fd440ea630a4453 (diff)
downloadQt-2410f261eaa13442baa46537202d31ad26d797e7.zip
Qt-2410f261eaa13442baa46537202d31ad26d797e7.tar.gz
Qt-2410f261eaa13442baa46537202d31ad26d797e7.tar.bz2
Reverted commits that changed the behavior of the keypresses with modifiers.
Apparently it changes the behavior of Qt too much and also breaks the text input in some keyboard layouts (for example in German layout you need to be able to use Ctrl and Alt or AltGr modifiers to type text). Revert "Don't insert text into a text widget when a modifier is pressed." This reverts commit 099a32d121cbc80a1a234c3146f4be9b5237e7e8. Revert "Fixed the qlineedit autotest." This reverts commit 9210e8cdc83b6812d10f5f5847d05703ef2e5f7c.
Diffstat (limited to 'tests/auto/qlineedit')
-rw-r--r--tests/auto/qlineedit/tst_qlineedit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qlineedit/tst_qlineedit.cpp b/tests/auto/qlineedit/tst_qlineedit.cpp
index 7fc8316..3519afa 100644
--- a/tests/auto/qlineedit/tst_qlineedit.cpp
+++ b/tests/auto/qlineedit/tst_qlineedit.cpp
@@ -3025,11 +3025,11 @@ void tst_QLineEdit::charWithAltOrCtrlModifier()
QTest::keyPress(testWidget, Qt::Key_Plus);
QCOMPARE(testWidget->text(), QString("+"));
QTest::keyPress(testWidget, Qt::Key_Plus, Qt::ControlModifier);
- QCOMPARE(testWidget->text(), QString("+"));
+ QCOMPARE(testWidget->text(), QString("++"));
QTest::keyPress(testWidget, Qt::Key_Plus, Qt::AltModifier);
- QCOMPARE(testWidget->text(), QString("+"));
+ QCOMPARE(testWidget->text(), QString("+++"));
QTest::keyPress(testWidget, Qt::Key_Plus, Qt::AltModifier | Qt::ControlModifier);
- QCOMPARE(testWidget->text(), QString("+"));
+ QCOMPARE(testWidget->text(), QString("++++"));
}
void tst_QLineEdit::leftKeyOnSelectedText()