summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-11 20:13:52 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-11 20:13:52 (GMT)
commitd700bc626eb893c896d43be3566dbcd13478a937 (patch)
tree002a9ff4f643a4b23c5d0c13da7f89bcb7fbf0d9
parentad6e3fe8503c050ae983e6220b1fe63d421ae878 (diff)
Port away from obsolete QTabletEvent member
-rw-r--r--ui/pageviewannotator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/pageviewannotator.cpp b/ui/pageviewannotator.cpp
index dbb46cb..0b4a34a 100644
--- a/ui/pageviewannotator.cpp
+++ b/ui/pageviewannotator.cpp
@@ -878,7 +878,7 @@ QRect PageViewAnnotator::routeMouseEvent( QMouseEvent * e, PageViewItem * item )
// figure out the event type and button
AnnotatorEngine::decodeEvent( e, &eventType, &button );
- return performRouteMouseOrTabletEvent( eventType, button, e->posF(), item );
+ return performRouteMouseOrTabletEvent( eventType, button, e->localPos(), item );
}
QRect PageViewAnnotator::routeTabletEvent( QTabletEvent * e, PageViewItem * item, const QPoint & localOriginInGlobal )
@@ -909,7 +909,7 @@ QRect PageViewAnnotator::routeTabletEvent( QTabletEvent * e, PageViewItem * item
// figure out the event type and button
AnnotatorEngine::decodeEvent( e, &eventType, &button );
- const QPointF globalPosF = e->hiResGlobalPos();
+ const QPointF globalPosF = e->globalPosF();
const QPointF localPosF = globalPosF - localOriginInGlobal;
return performRouteMouseOrTabletEvent( eventType, button, localPosF, item );
}