summaryrefslogtreecommitdiffstats
path: root/tests/auto/qwidget/tst_qwidget.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-09-14 14:23:06 +0200
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-09-14 14:37:51 +0200
commitf1b134bc57584c64e9703683d2c3bc6c46264d19 (patch)
treec9c5161bbb65926d421630102202aadbd0b4fc69 /tests/auto/qwidget/tst_qwidget.cpp
parent2f331bb76f00e251513c197fd43bee9faa511395 (diff)
Implement synthetic enter/leave events for QWS.
QWS uses alien widgets too, so we need the same logic as the other platforms. Reviewed-by: bnilsen
Diffstat (limited to 'tests/auto/qwidget/tst_qwidget.cpp')
-rw-r--r--tests/auto/qwidget/tst_qwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp
index 47cd860438..86caddb4e0 100644
--- a/tests/auto/qwidget/tst_qwidget.cpp
+++ b/tests/auto/qwidget/tst_qwidget.cpp
@@ -350,7 +350,7 @@ private slots:
void setClearAndResizeMask();
void maskedUpdate();
-#if defined(Q_WS_WIN) || defined(Q_WS_X11)
+#if defined(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_QWS)
void syntheticEnterLeave();
#endif
void windowFlags();
@@ -8990,7 +8990,7 @@ void tst_QWidget::maskedUpdate()
QCOMPARE(grandChild.paintedRegion, QRegion(grandChild.rect())); // Full update.
}
-#if defined(Q_WS_X11) || defined(Q_WS_WIN)
+#if defined(Q_WS_X11) || defined(Q_WS_WIN) || defined(Q_WS_QWS)
void tst_QWidget::syntheticEnterLeave()
{
class MyWidget : public QWidget
@@ -9275,6 +9275,7 @@ void tst_QWidget::rectOutsideCoordinatesLimit_task144779()
#ifdef Q_WS_X11
qt_x11_wait_for_window_manager(&main);
#endif
+ QCursor::setPos(main.pos()); //get the cursor out of the picture
QTest::qWait(100);
QPixmap pixmap = QPixmap::grabWindow(main.winId());