diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-10-01 12:12:30 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-10-01 12:14:55 (GMT) |
commit | 9a2fe76443e814c221f308f8fe37ef6fcccbcf74 (patch) | |
tree | 8a8d1576bb07252ceba54508632d78a3e7e707c2 /tests/auto/qwidget | |
parent | b718b80cd94063b491ba7695ccd2902c2819141b (diff) | |
download | Qt-9a2fe76443e814c221f308f8fe37ef6fcccbcf74.zip Qt-9a2fe76443e814c221f308f8fe37ef6fcccbcf74.tar.gz Qt-9a2fe76443e814c221f308f8fe37ef6fcccbcf74.tar.bz2 |
fix minimizing for Windows CE and Windows mobile
Task-number: QT-2243
Reviewed-by: thartman
Diffstat (limited to 'tests/auto/qwidget')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index c4e62ef..e4608b2 100644 --- a/tests/auto/qwidget/tst_qwidget.cpp +++ b/tests/auto/qwidget/tst_qwidget.cpp @@ -8046,13 +8046,8 @@ void tst_QWidget::doubleRepaint() QTRY_COMPARE(widget.numPaintEvents, expectedRepaints); widget.numPaintEvents = 0; -#ifndef Q_OS_WINCE //still no proper minimizing // Minmize: Should not trigger a repaint. widget.showMinimized(); -#else - // Hide: Should not trigger a repaint. - widget.hide(); -#endif QTest::qWait(10); QCOMPARE(widget.numPaintEvents, 0); widget.numPaintEvents = 0; @@ -8061,12 +8056,7 @@ void tst_QWidget::doubleRepaint() widget.showNormal(); QTest::qWaitForWindowShown(&widget); QTest::qWait(10); -#ifndef Q_OS_WINCE QCOMPARE(widget.numPaintEvents, 0); -#else - // We called hide(), and then it'll get repainted once it's shown again. - QCOMPARE(widget.numPaintEvents, 1); -#endif } #ifndef Q_WS_MAC |