diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-01-03 16:05:46 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-01-03 18:26:08 +0000 |
commit | 28a9f66ea4910657b98cd4db548d84b298cf844e (patch) | |
tree | a397993c9cf1cf1ac0000d47e37c26228cb653b8 /src/quicktemplates2/qquickdial_p.h | |
parent | 0b290018b52bc15534bedebe39f183e74eaee24e (diff) |
QQuickDial: handle touch events
In comparison to handling synthesized mouse events, handling touch
events has the advantage that it gives multi-touch support. That is,
it is possible to move multiple dials at the same time, each handling
its own touch point.
Change-Id: Icabd971147f291fa4df00c6215c847d7976fda5f
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdial_p.h')
-rw-r--r-- | src/quicktemplates2/qquickdial_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickdial_p.h b/src/quicktemplates2/qquickdial_p.h index cfaf1f32..efb43165 100644 --- a/src/quicktemplates2/qquickdial_p.h +++ b/src/quicktemplates2/qquickdial_p.h @@ -138,6 +138,8 @@ protected: void mouseMoveEvent(QMouseEvent *event) override; void mouseReleaseEvent(QMouseEvent *event) override; void mouseUngrabEvent() override; + void touchEvent(QTouchEvent *event) override; + void touchUngrabEvent() override; void wheelEvent(QWheelEvent *event) override; void mirrorChange() override; |