diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 16:04:46 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 16:11:32 (GMT) |
commit | af876ae5a55526afa4aedc3d8b214d66b50032e6 (patch) | |
tree | bcefd79fdee6c5b1438ddbed7f179f335ae9a4d4 /tests/auto/qstylesheetstyle | |
parent | affff618d68dd7f0c6c6abd2dd59ed151e45e220 (diff) | |
download | Qt-af876ae5a55526afa4aedc3d8b214d66b50032e6.zip Qt-af876ae5a55526afa4aedc3d8b214d66b50032e6.tar.gz Qt-af876ae5a55526afa4aedc3d8b214d66b50032e6.tar.bz2 |
Try to stabilize stylesheet test
Diffstat (limited to 'tests/auto/qstylesheetstyle')
-rw-r--r-- | tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp index 50bb846..15ed56b 100644 --- a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp +++ b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp @@ -974,10 +974,11 @@ void tst_QStyleSheetStyle::background() void tst_QStyleSheetStyle::tabAlignement() { QTabWidget tabWidget; - tabWidget.show(); - QTest::qWait(50); tabWidget.addTab(new QLabel("tab1"),"tab1"); tabWidget.resize(QSize(400,400)); + tabWidget.show(); + QTest::qWaitForWindowShown(&tabWidget); + QTest::qWait(50); QTabBar *bar = qFindChild<QTabBar*>(&tabWidget); QVERIFY(bar); //check the tab is on the right |