summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdatetimeedit
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2010-06-11 11:35:18 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2010-06-11 11:43:16 (GMT)
commit787b56fbcad2eda8ababc919a535fb2f9ef48fb5 (patch)
treeb0facc584741c2104670a943c54c4f2e6a5502b3 /tests/auto/qdatetimeedit
parentf3d0cf049cc5e1eea57146e11ac5a272a774dad8 (diff)
downloadQt-787b56fbcad2eda8ababc919a535fb2f9ef48fb5.zip
Qt-787b56fbcad2eda8ababc919a535fb2f9ef48fb5.tar.gz
Qt-787b56fbcad2eda8ababc919a535fb2f9ef48fb5.tar.bz2
Show EditorDateEdit before changing selection in qdatetimeedit test
In Symbian plaform showing a widget automatically focuses it by design, which breaks this test case. Changed the selection change to happen after widget show, as this test case doesn't require it to happen before show. Task-number: QTBUG-11046 Reviewed-by: axis
Diffstat (limited to 'tests/auto/qdatetimeedit')
-rw-r--r--tests/auto/qdatetimeedit/tst_qdatetimeedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qdatetimeedit/tst_qdatetimeedit.cpp b/tests/auto/qdatetimeedit/tst_qdatetimeedit.cpp
index 558d4de..3125258 100644
--- a/tests/auto/qdatetimeedit/tst_qdatetimeedit.cpp
+++ b/tests/auto/qdatetimeedit/tst_qdatetimeedit.cpp
@@ -3148,8 +3148,8 @@ void tst_QDateTimeEdit::nextPrevSection()
EditorDateEdit edit;
edit.setDisplayFormat("hh/mm/bc9ss");
edit.setTime(QTime(12, 34, 56));
- edit.setSelectedSection(QDateTimeEdit::MinuteSection);
edit.show();
+ edit.setSelectedSection(QDateTimeEdit::MinuteSection);
QCOMPARE(edit.lineEdit()->selectedText(), QString("34")); // selftest
QTest::keyClick(&edit, key, modifiers);
QCOMPARE(edit.lineEdit()->selectedText(), selectedText);