summaryrefslogtreecommitdiff
path: root/src/compositor/extensions/qwlqttouch.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-04-15 18:21:00 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2020-04-15 23:15:49 +0200
commit224f48fa0d5eb325f66769054ed3e8d0a24d862a (patch)
tree250f3c71f4bdcbb8124ead276455ac8092b89f32 /src/compositor/extensions/qwlqttouch.cpp
parent57e31dd17cbf22e8bdebc5e4a537dd3d632936f7 (diff)
downloadqtwayland-224f48fa0d5eb325f66769054ed3e8d0a24d862a.tar.gz
Stop using deprecated TouchPoint accessors
rect() has been deprecated since 5.6. Change-Id: I7f05ead7d396bb3be222161241fd90684544dd94 Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/compositor/extensions/qwlqttouch.cpp')
-rw-r--r--src/compositor/extensions/qwlqttouch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/extensions/qwlqttouch.cpp b/src/compositor/extensions/qwlqttouch.cpp
index 1f92432f..b47af06c 100644
--- a/src/compositor/extensions/qwlqttouch.cpp
+++ b/src/compositor/extensions/qwlqttouch.cpp
@@ -94,8 +94,8 @@ bool TouchExtensionGlobal::postTouchEvent(QTouchEvent *event, QWaylandSurface *s
int y = toFixed(tp.pos().y());
int nx = toFixed(tp.normalizedPos().x());
int ny = toFixed(tp.normalizedPos().y());
- int w = toFixed(tp.rect().width());
- int h = toFixed(tp.rect().height());
+ int w = toFixed(tp.ellipseDiameters().width());
+ int h = toFixed(tp.ellipseDiameters().height());
int vx = toFixed(tp.velocity().x());
int vy = toFixed(tp.velocity().y());
uint32_t pressure = uint32_t(tp.pressure() * 255);