summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstylesheetstyle
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-23 16:04:46 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-23 16:11:32 (GMT)
commitaf876ae5a55526afa4aedc3d8b214d66b50032e6 (patch)
treebcefd79fdee6c5b1438ddbed7f179f335ae9a4d4 /tests/auto/qstylesheetstyle
parentaffff618d68dd7f0c6c6abd2dd59ed151e45e220 (diff)
downloadQt-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.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 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