summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorninerider <qt-info@nokia.com>2009-10-20 12:40:26 (GMT)
committerninerider <qt-info@nokia.com>2009-10-20 12:40:26 (GMT)
commit76ef766a32cdcfd9cd64cf1d288c92a2b2040c15 (patch)
tree82a63a54d4256ac1976bbd8504db7d41e75b045b
parent3aa8e4defdf104aeb0101815decfebe9e7ebc660 (diff)
downloadQt-76ef766a32cdcfd9cd64cf1d288c92a2b2040c15.zip
Qt-76ef766a32cdcfd9cd64cf1d288c92a2b2040c15.tar.gz
Qt-76ef766a32cdcfd9cd64cf1d288c92a2b2040c15.tar.bz2
Windows CE gets a different paint event count than windows
Reviewed-by: Joerg
-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 27c19df..1387a92 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;