diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-05-22 10:44:48 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-22 20:56:38 +0200 |
commit | 0390b02a7fdf96dc8b403e4634f62bf0a08ab94d (patch) | |
tree | 3534105b09ebcdefbd4b828e0060ea8c8eb74484 /src/gui/kernel/qevent.h | |
parent | b1f12913a6acc48dc566ae5cf06ba640765d7ba5 (diff) |
Add mouse event internal members needed by declarative
In order to remove QQuickMouseEventEx we have to be able to store
touch-related data, like capabilities and velocity, also in mouse
events. However they should not be exposed through the public API in
any way. (at least not in 5.0)
Change-Id: I7774b9ea00074950208559463249fbdcaeeaefbf
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/kernel/qevent.h')
-rw-r--r-- | src/gui/kernel/qevent.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 96e630ed0a..de80d19fe6 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -119,6 +119,10 @@ protected: QPointF l, w, s; Qt::MouseButton b; Qt::MouseButtons mouseState; + int caps; + QVector2D velocity; + + friend class QGuiApplicationPrivate; }; class Q_GUI_EXPORT QHoverEvent : public QInputEvent |