diff options
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 570f3f7f3f..4e4bc13f12 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -2387,6 +2387,29 @@ void QGuiApplicationPrivate::q_updateFocusObject(QObject *object) emit q->focusObjectChanged(object); } +int QGuiApplicationPrivate::mouseEventCaps(QMouseEvent *event) +{ + return event->caps; +} + +QVector2D QGuiApplicationPrivate::mouseEventVelocity(QMouseEvent *event) +{ + return event->velocity; +} + +void QGuiApplicationPrivate::setMouseEventCapsAndVelocity(QMouseEvent *event, int caps, const QVector2D &velocity) +{ + event->caps = caps; + event->velocity = velocity; +} + +void QGuiApplicationPrivate::setMouseEventCapsAndVelocity(QMouseEvent *event, QMouseEvent *other) +{ + event->caps = other->caps; + event->velocity = other->velocity; +} + + #include "moc_qguiapplication.cpp" QT_END_NAMESPACE |