summaryrefslogtreecommitdiff
path: root/tests/auto/qtabwidget/tst_qtabwidget.cpp
diff options
context:
space:
mode:
authorninerider <qt-info@nokia.com>2009-10-20 14:40:26 +0200
committerninerider <qt-info@nokia.com>2009-10-20 14:40:26 +0200
commit76ef766a32cdcfd9cd64cf1d288c92a2b2040c15 (patch)
tree82a63a54d4256ac1976bbd8504db7d41e75b045b /tests/auto/qtabwidget/tst_qtabwidget.cpp
parent3aa8e4defdf104aeb0101815decfebe9e7ebc660 (diff)
downloadqt4-tools-76ef766a32cdcfd9cd64cf1d288c92a2b2040c15.tar.gz
Windows CE gets a different paint event count than windows
Reviewed-by: Joerg
Diffstat (limited to 'tests/auto/qtabwidget/tst_qtabwidget.cpp')
-rw-r--r--tests/auto/qtabwidget/tst_qtabwidget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qtabwidget/tst_qtabwidget.cpp b/tests/auto/qtabwidget/tst_qtabwidget.cpp
index 27c19df6d1..1387a9209c 100644
--- a/tests/auto/qtabwidget/tst_qtabwidget.cpp
+++ b/tests/auto/qtabwidget/tst_qtabwidget.cpp
@@ -590,9 +590,11 @@ void tst_QTabWidget::paintEventCount()
QTest::qWait(1000);
- // Mac and Windows get multiple repaints on the first show, so use those as a starting point.
+ // Mac, Windows and Windows CE get multiple repaints on the first show, so use those as a starting point.
static const int MaxInitialPaintCount =
-#if defined(Q_WS_WIN)
+#if defined(Q_OS_WINCE)
+ 4;
+#elif defined(Q_WS_WIN)
2;
#elif defined(Q_WS_MAC)
5;