aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointerhandler.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-09-03 18:42:09 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-09-05 11:52:48 +0000
commit2617ac5b9df7dfdecf0cb02d5933c40df1a55bbc (patch)
treeb14cbc0f7335a0397e09014e1953213d086b9ffa /src/quick/handlers/qquickpointerhandler.cpp
parentbe3559470ac934dcfed881996be0eeb1269e6f96 (diff)
rename QQuickEventPoint pos properties to position
For consistency we always spell it out, although it does make some of these properties inconveniently verbose. Change-Id: I64a08c3aa261c0ab89e09472dd47510abafbf7ca Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpointerhandler.cpp')
-rw-r--r--src/quick/handlers/qquickpointerhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/handlers/qquickpointerhandler.cpp b/src/quick/handlers/qquickpointerhandler.cpp
index bcccfac318..14ce8fea03 100644
--- a/src/quick/handlers/qquickpointerhandler.cpp
+++ b/src/quick/handlers/qquickpointerhandler.cpp
@@ -152,14 +152,14 @@ void QQuickPointerHandler::cancelAllGrabs(QQuickEventPoint *point)
QPointF QQuickPointerHandler::eventPos(const QQuickEventPoint *point) const
{
- return (target() ? target()->mapFromScene(point->scenePos()) : point->scenePos());
+ return (target() ? target()->mapFromScene(point->scenePosition()) : point->scenePosition());
}
bool QQuickPointerHandler::parentContains(const QQuickEventPoint *point) const
{
if (point) {
if (QQuickItem *par = parentItem())
- return par->contains(par->mapFromScene(point->scenePos()));
+ return par->contains(par->mapFromScene(point->scenePosition()));
}
return false;
}