summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-11-08 12:45:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-14 10:36:38 +0100
commit39a09526870e7cd0b27402aca817a71306dc5c41 (patch)
tree6b96028c6002a295f0550343bea0de5ce3be4bfc /tests/auto/widgets
parent4334e0fcc60497da73671063deb68fb1661f864c (diff)
Send enter to the child at the position of the QEnterEvent.
This was apparently done so in each of the widget_<platform>.cpp in Qt 4.8. This then causes the cursor to be updated in dispatchEnterLeave() on Windows and Linux. Task-number: QTBUG-27871 Task-number: QTBUG-27585 Task-number: QTBUG-26424 Change-Id: Idf14cd96ccb36f7c2607853ed8b0024c36a5413c Reviewed-by: Oliver Wolff <oliver.wolff@digia.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'tests/auto/widgets')
-rw-r--r--tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
index a70129c5f7..548b5ccf6a 100644
--- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
+++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
@@ -8547,6 +8547,7 @@ void tst_QWidget::syntheticEnterLeave()
MyWidget window;
window.setWindowFlags(Qt::WindowStaysOnTopHint);
+ window.move(200, 200);
window.resize(200, 200);
MyWidget *child1 = new MyWidget(&window);
@@ -8636,8 +8637,6 @@ void tst_QWidget::syntheticEnterLeave()
#ifndef QTEST_NO_CURSOR
void tst_QWidget::taskQTBUG_4055_sendSyntheticEnterLeave()
{
- if (m_platform == QStringLiteral("windows") || m_platform == QStringLiteral("xcb"))
- QSKIP("QTBUG-26424");
class SELParent : public QWidget
{
public:
@@ -8665,6 +8664,7 @@ void tst_QWidget::taskQTBUG_4055_sendSyntheticEnterLeave()
QCursor::setPos(QPoint(0,0));
SELParent parent;
+ parent.move(200, 200);
parent.resize(200, 200);
SELChild child(&parent);
child.resize(200, 200);