summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-07-27 16:58:26 +0300
committerMarc Mutz <marc.mutz@kdab.com>2019-07-31 12:44:07 +0300
commit9df4bab665115177b35ca1aeee6a18e9610e3a32 (patch)
tree33655d65fec1f415d07992d42e1ddc5f39d608a9
parentf3b6963f8b873c190cc1033cb8dabaf1d63ee2b6 (diff)
QMouseEvent: port away from deprecated QWheelEvent::x/y()
Inline the function's QtBase implementations into the code here. Change-Id: I9e9b8b7612f3ca5dcbff7bb8cd33d3355ea170f5 Reviewed-by: Liang Qi <liang.qi@qt.io>
-rw-r--r--src/input/frontend/qmouseevent.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/frontend/qmouseevent.h b/src/input/frontend/qmouseevent.h
index 87b648be3..fb9d4f86f 100644
--- a/src/input/frontend/qmouseevent.h
+++ b/src/input/frontend/qmouseevent.h
@@ -144,8 +144,8 @@ public:
explicit QWheelEvent(const QT_PREPEND_NAMESPACE(QWheelEvent) &e);
~QWheelEvent();
- inline int x() const { return m_event.x(); }
- inline int y() const { return m_event.y(); }
+ inline int x() const { return int(m_event.position().x()); }
+ inline int y() const { return int(m_event.position().y()); }
inline QPoint angleDelta() const { return m_event.angleDelta(); }
int buttons() const;
Modifiers modifiers() const;