summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguiapplication_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-05-22 10:44:48 +0300
committerQt by Nokia <qt-info@nokia.com>2012-05-22 20:56:38 +0200
commit0390b02a7fdf96dc8b403e4634f62bf0a08ab94d (patch)
tree3534105b09ebcdefbd4b828e0060ea8c8eb74484 /src/gui/kernel/qguiapplication_p.h
parentb1f12913a6acc48dc566ae5cf06ba640765d7ba5 (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/qguiapplication_p.h')
-rw-r--r--src/gui/kernel/qguiapplication_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication_p.h b/src/gui/kernel/qguiapplication_p.h
index bab3ecc997..d40f61d13b 100644
--- a/src/gui/kernel/qguiapplication_p.h
+++ b/src/gui/kernel/qguiapplication_p.h
@@ -212,6 +212,11 @@ public:
};
QHash<QWindow *, SynthesizedMouseData> synthesizedMousePoints;
+ static int mouseEventCaps(QMouseEvent *event);
+ static QVector2D mouseEventVelocity(QMouseEvent *event);
+ static void setMouseEventCapsAndVelocity(QMouseEvent *event, int caps, const QVector2D &velocity);
+ static void setMouseEventCapsAndVelocity(QMouseEvent *event, QMouseEvent *other);
+
const QDrawHelperGammaTables *gammaTables();
// hook reimplemented in QApplication to apply the QStyle function on the QIcon