aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointerhandler.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-08-24 10:41:16 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-09-19 11:10:49 +0000
commitadcfaae0fd8934ee5dc944fe2ab224afa6ab075d (patch)
tree6b61fed2831ad97ef81a5100c5b671313247e580 /src/quick/handlers/qquickpointerhandler.cpp
parentb9dc856eca10775c5e37eec653b9ba28ff14472b (diff)
QQuickEventPoint: rename itemGrabber -> grabberItem etc.
QQuickWindow::mouseGrabberItem already existed, so we have a precedent for "specific thing which grabs" to come after the word Grabber. Change-Id: I65847ee0a005fac9b6292b9b91bb16f5f180e9bb Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/quick/handlers/qquickpointerhandler.cpp')
-rw-r--r--src/quick/handlers/qquickpointerhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/handlers/qquickpointerhandler.cpp b/src/quick/handlers/qquickpointerhandler.cpp
index 08a1cfc86f..4c60180f46 100644
--- a/src/quick/handlers/qquickpointerhandler.cpp
+++ b/src/quick/handlers/qquickpointerhandler.cpp
@@ -66,9 +66,9 @@ QQuickPointerHandler::QQuickPointerHandler(QObject *parent)
void QQuickPointerHandler::setGrab(QQuickEventPoint *point, bool grab)
{
if (grab)
- point->setPointerHandlerGrabber(this);
- else if (point->pointerHandlerGrabber() == this)
- point->setPointerHandlerGrabber(nullptr);
+ point->setGrabberPointerHandler(this);
+ else if (point->grabberPointerHandler() == this)
+ point->setGrabberPointerHandler(nullptr);
}
QPointF QQuickPointerHandler::eventPos(const QQuickEventPoint *point) const