diff options
author | Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> | 2016-08-04 13:48:40 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-08-04 14:07:18 +0000 |
commit | c75c4201bc26d6e85abace15d5e773b0702bacd2 (patch) | |
tree | 969b8c19fb7d73305e4c097999c29ab8d3929646 /src/quick/items/qquickwindow.cpp | |
parent | 175f53860af034edf5a2dd5e9a5555376e604180 (diff) |
Remove bogus claim
There cannot be any change in grabber, when calling
QCoreApplication::sendEvent. This kind of surprise take-over should be
done through childFilterMouse which this function is already a part of.
Change-Id: I10c3aad3a83b0045e3c407b936e39ba589e4c6d1
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
-rw-r--r-- | src/quick/items/qquickwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp index ae3b272e72..cf50733d1b 100644 --- a/src/quick/items/qquickwindow.cpp +++ b/src/quick/items/qquickwindow.cpp @@ -682,10 +682,8 @@ bool QQuickWindowPrivate::deliverTouchAsMouse(QQuickItem *item, QTouchEvent *eve event->setAccepted(me->isAccepted()); if (me->isAccepted()) { qCDebug(DBG_TOUCH_TARGET) << "TP (mouse)" << p.id() << "->" << mouseGrabberItem; - auto pointerEventPoint = device->pointerEvent()->pointById(p.id()); - pointerEventPoint->setGrabber(q->mouseGrabberItem()); // N.B. the mouseGrabberItem may be different after returning from sendEvent() - return true; } + return event->isAccepted(); } else { // no grabber, check if we care about mouse hover // FIXME: this should only happen once, not recursively... I'll ignore it just ignore hover now. |