diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2019-08-07 07:47:31 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2019-08-07 07:47:31 +0200 |
commit | 8af94d9a048f7d26a8137c3c51dcf47605fcf4b6 (patch) | |
tree | e5ef1654a217bf82f0bb3549d1c8f1762f1a9f25 /src/input/frontend/qmouseevent.h | |
parent | 44470868450c440ca874ba585e2b71dfc8e89f1d (diff) | |
parent | 7be8029d4c2cd0ce24f0277d6ee87041161edab4 (diff) |
Merge remote-tracking branch 'qt-gerrit/dev' into wip/refactor
Change-Id: I61324b258ed28d420c96acafd4e624655ffb40e1
Diffstat (limited to 'src/input/frontend/qmouseevent.h')
-rw-r--r-- | src/input/frontend/qmouseevent.h | 4 |
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; |