aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointersinglehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/handlers/qquickpointersinglehandler.cpp')
-rw-r--r--src/quick/handlers/qquickpointersinglehandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/handlers/qquickpointersinglehandler.cpp b/src/quick/handlers/qquickpointersinglehandler.cpp
index 41c9e1f322..c0c88f3852 100644
--- a/src/quick/handlers/qquickpointersinglehandler.cpp
+++ b/src/quick/handlers/qquickpointersinglehandler.cpp
@@ -83,7 +83,7 @@ bool QQuickPointerSingleHandler::wantsPointerEvent(QQuickPointerEvent *event)
int c = event->pointCount();
for (int i = 0; i < c && !m_pointId; ++i) {
QQuickEventPoint *p = event->point(i);
- if (!p->grabber() && wantsEventPoint(p)) {
+ if (!p->exclusiveGrabber() && wantsEventPoint(p)) {
m_pointId = p->pointId();
p->setAccepted();
}
@@ -149,7 +149,7 @@ void QQuickPointerSingleHandler::handleGrabCancel(QQuickEventPoint *point)
void QQuickPointerSingleHandler::onGrabChanged(QQuickEventPoint *point)
{
- bool grabbing = (point->grabber() == this);
+ bool grabbing = (point->exclusiveGrabber() == this);
setActive(grabbing);
if (grabbing)
m_sceneGrabPos = point->sceneGrabPos();