summaryrefslogtreecommitdiffstats
path: root/examples/wayland/minimal-cpp/compositor.h
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-08-26 13:35:14 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-08-28 12:33:00 +0000
commit32f3f85b3ba044d9eb35996eb8df84b9822b2fd7 (patch)
treecc5615b2c837729a23f067a28bc66cbf622aae30 /examples/wayland/minimal-cpp/compositor.h
parentb6703d94d833c73dbe7fd252c4b61db455f5c2f5 (diff)
Remove usages of deprecated APIs of QWheelEvent
- Replaced the usages of deprecated QWheelEvent::delta() and QWheelEvent::orientation() with QWheelEvent::angleDelta(). - Removed the tests for deprecated APIs. Task-number: QTBUG-76491 Change-Id: I2f9a53d3236bce8ba6cee66ec1b0b933d50518aa Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'examples/wayland/minimal-cpp/compositor.h')
-rw-r--r--examples/wayland/minimal-cpp/compositor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/wayland/minimal-cpp/compositor.h b/examples/wayland/minimal-cpp/compositor.h
index 3c0c80e0e..e32442dd4 100644
--- a/examples/wayland/minimal-cpp/compositor.h
+++ b/examples/wayland/minimal-cpp/compositor.h
@@ -102,7 +102,7 @@ public:
void handleMousePress(const QPoint &position, Qt::MouseButton button);
void handleMouseRelease(const QPoint &position, Qt::MouseButton button, Qt::MouseButtons buttons);
void handleMouseMove(const QPoint &position);
- void handleMouseWheel(Qt::Orientation orientation, int delta);
+ void handleMouseWheel(const QPoint &angleDelta);
void handleKeyPress(quint32 nativeScanCode);
void handleKeyRelease(quint32 nativeScanCode);