diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-08-29 16:59:21 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-09-17 04:20:58 +0200 |
commit | 8932e80d0c8879a1e720fef825ed0d9c4e384a01 (patch) | |
tree | d4654c5d4a221d6a000d7e73a40be3d4170252f7 /src/gui/kernel/qevent_p.h | |
parent | d1fc991c6e3c45a5f93c925d49e3fe77ce6ce455 (diff) |
Add more QPointerEvent functions needed in Qt Quick
Change-Id: I87a874477b89eb3f5951930f03e305d896a24c2e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/kernel/qevent_p.h')
-rw-r--r-- | src/gui/kernel/qevent_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent_p.h b/src/gui/kernel/qevent_p.h index 2bad2c0f5b..23a171e6ab 100644 --- a/src/gui/kernel/qevent_p.h +++ b/src/gui/kernel/qevent_p.h @@ -199,6 +199,12 @@ static_assert(sizeof(QMutableTouchEvent) == sizeof(QTouchEvent)); class Q_GUI_EXPORT QMutableSinglePointEvent : public QSinglePointEvent { public: + QMutableSinglePointEvent(Type type, const QPointingDevice *device, const QEventPoint &point, + Qt::MouseButton button = Qt::NoButton, Qt::MouseButtons buttons = Qt::NoButton, + Qt::KeyboardModifiers modifiers = Qt::NoModifier, + Qt::MouseEventSource source = Qt::MouseEventSynthesizedByQt) : + QSinglePointEvent(type, device, point, button, buttons, modifiers, source) { } + static QMutableSinglePointEvent *from(QSinglePointEvent *e) { return static_cast<QMutableSinglePointEvent *>(e); } static QMutableSinglePointEvent &from(QSinglePointEvent &e) { return static_cast<QMutableSinglePointEvent &>(e); } |