summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@digia.com>2014-11-13 11:32:21 +0100
committerShawn Rutledge <shawn.rutledge@digia.com>2014-11-26 08:43:28 +0100
commitddc732399949fad397288eb1e0d83cbb5df5f44f (patch)
tree3da359a655472fbf99e905a5412478d44126dd85 /tests/auto
parentb9ae25fa712c88e6861c733d60f44fab84b9c475 (diff)
XCB: send leave event on grab
When a popup is opened it grabs the input, but the leave event to the other windows needs to be sent. Remove the popupEnterLeave test as it did not test any code. The Popup never gets any enter or leave events so it will succeed always succeed Task-number: QTBUG-36862 Change-Id: I625c616eeb74b5168af7b751485e2a9a53b76cd3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
index 44d7671ca3..756b22073e 100644
--- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
+++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
@@ -206,7 +206,6 @@ private slots:
void enabledPropagation();
void ignoreKeyEventsWhenDisabled_QTBUG27417();
void properTabHandlingWhenDisabled_QTBUG27417();
- void popupEnterLeave();
#ifndef QT_NO_DRAGANDDROP
void acceptDropsPropagation();
#endif
@@ -5001,51 +5000,6 @@ bool verifyColor(QWidget &child, const QRegion &region, const QColor &color, uns
return true;
}
-void tst_QWidget::popupEnterLeave()
-{
- QWidget parent;
- parent.setWindowFlags(Qt::FramelessWindowHint);
- parent.setGeometry(10, 10, 200, 100);
-
- ColorWidget alien(&parent, Qt::Widget, Qt::black);
- alien.setGeometry(0, 0, 10, 10);
- alien.show();
-
- parent.show();
-
- QVERIFY(QTest::qWaitForWindowExposed(&parent));
-
- QWindowSystemInterface::handleMouseEvent(parent.windowHandle(), QPointF(5, 5), QPointF(), Qt::LeftButton, Qt::NoModifier);
- QTest::qWait(100);
- QWindowSystemInterface::handleMouseEvent(parent.windowHandle(), QPointF(5, 5), QPointF(), Qt::NoButton, Qt::NoModifier);
- QTest::qWait(100);
-
- QStringList wordList;
- wordList << "alpha" << "omega" << "omicron" << "zeta";
-
- QLineEdit popup(&parent);
-
- QCompleter completer(wordList);
- completer.setCaseSensitivity(Qt::CaseInsensitive);
- popup.setCompleter(&completer);
- popup.setWindowFlags(Qt::Popup);
- popup.setGeometry(20, 20, 80, 20);
-
- popup.show();
-
- QVERIFY(QTest::qWaitForWindowExposed(&popup));
-
- QTest::qWait(100);
-
- QWindowSystemInterface::handleMouseEvent(popup.windowHandle(), QPointF(-5, -5), QPointF(), Qt::LeftButton, Qt::NoModifier);
- QTest::qWait(100);
- QWindowSystemInterface::handleMouseEvent(popup.windowHandle(), QPointF(-5, -5), QPointF(), Qt::NoButton, Qt::NoModifier);
- QTest::qWait(100);
-
- QTest::qWait(1000);
- QVERIFY(!popup.underMouse());
-}
-
void tst_QWidget::moveChild_data()
{
QTest::addColumn<QPoint>("offset");