diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 18:04:46 +0200 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-23 18:11:32 +0200 |
commit | af876ae5a55526afa4aedc3d8b214d66b50032e6 (patch) | |
tree | bcefd79fdee6c5b1438ddbed7f179f335ae9a4d4 /tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp | |
parent | affff618d68dd7f0c6c6abd2dd59ed151e45e220 (diff) | |
download | qt4-tools-af876ae5a55526afa4aedc3d8b214d66b50032e6.tar.gz |
Try to stabilize stylesheet test
Diffstat (limited to 'tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp')
-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 50bb84648c..15ed56bba3 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 |