summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstylesheetstyle
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-23 18:04:46 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-23 18:11:32 +0200
commitaf876ae5a55526afa4aedc3d8b214d66b50032e6 (patch)
treebcefd79fdee6c5b1438ddbed7f179f335ae9a4d4 /tests/auto/qstylesheetstyle
parentaffff618d68dd7f0c6c6abd2dd59ed151e45e220 (diff)
Try to stabilize stylesheet test
Diffstat (limited to 'tests/auto/qstylesheetstyle')
-rw-r--r--tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp5
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