diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-14 12:23:06 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-14 12:37:51 (GMT) |
commit | f1b134bc57584c64e9703683d2c3bc6c46264d19 (patch) | |
tree | c9c5161bbb65926d421630102202aadbd0b4fc69 /tests | |
parent | 2f331bb76f00e251513c197fd43bee9faa511395 (diff) | |
download | Qt-f1b134bc57584c64e9703683d2c3bc6c46264d19.zip Qt-f1b134bc57584c64e9703683d2c3bc6c46264d19.tar.gz Qt-f1b134bc57584c64e9703683d2c3bc6c46264d19.tar.bz2 |
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')
-rw-r--r-- | tests/auto/qwidget/tst_qwidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qwidget/tst_qwidget.cpp b/tests/auto/qwidget/tst_qwidget.cpp index 47cd860..86caddb 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()); |