summaryrefslogtreecommitdiffstats
path: root/src/input/frontend/qmouseevent.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2019-08-07 07:47:31 +0200
committerPaul Lemire <paul.lemire@kdab.com>2019-08-07 07:47:31 +0200
commit8af94d9a048f7d26a8137c3c51dcf47605fcf4b6 (patch)
treee5ef1654a217bf82f0bb3549d1c8f1762f1a9f25 /src/input/frontend/qmouseevent.h
parent44470868450c440ca874ba585e2b71dfc8e89f1d (diff)
parent7be8029d4c2cd0ce24f0277d6ee87041161edab4 (diff)
Merge remote-tracking branch 'qt-gerrit/dev' into wip/refactor
Diffstat (limited to 'src/input/frontend/qmouseevent.h')
-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 a7aa8fe2b..1402d8210 100644
--- a/src/input/frontend/qmouseevent.h
+++ b/src/input/frontend/qmouseevent.h
@@ -142,8 +142,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;