diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-06-11 11:35:18 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2010-06-11 11:43:16 (GMT) |
commit | 787b56fbcad2eda8ababc919a535fb2f9ef48fb5 (patch) | |
tree | b0facc584741c2104670a943c54c4f2e6a5502b3 /tests/auto/qdatetimeedit | |
parent | f3d0cf049cc5e1eea57146e11ac5a272a774dad8 (diff) | |
download | Qt-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.cpp | 2 |
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); |