summaryrefslogtreecommitdiffstats
path: root/src/plugins/generic/tuiotouch/qtuiocursor_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-08-16 10:01:05 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-09-03 05:07:28 +0000
commit7f801ed73a3b9e9098fafed64c21e98ae7d73dff (patch)
tree04576916fc6d1b967f6b4a975b61b7c926a74865 /src/plugins/generic/tuiotouch/qtuiocursor_p.h
parent7fb34481617cb1a283082cb12885dd3f625e77a2 (diff)
tuiotouch: clean up
- order includes from most specific to most general - include only what you need - port uses of inefficient QLists to QVector (required adding default ctors to the payload types) - mark types as Q_MOVABLE_TYPE - inline some trivial functions - add explicit to ctors - mark plugin with QT_NO_FOREACH Change-Id: I7ae13141ece22bfdf49be42deb0987d51da2d72b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/plugins/generic/tuiotouch/qtuiocursor_p.h')
-rw-r--r--src/plugins/generic/tuiotouch/qtuiocursor_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/generic/tuiotouch/qtuiocursor_p.h b/src/plugins/generic/tuiotouch/qtuiocursor_p.h
index 2ff762b836..46134e6f3f 100644
--- a/src/plugins/generic/tuiotouch/qtuiocursor_p.h
+++ b/src/plugins/generic/tuiotouch/qtuiocursor_p.h
@@ -102,6 +102,7 @@ private:
float m_acceleration;
Qt::TouchPointState m_state;
};
+Q_DECLARE_TYPEINFO(QTuioCursor, Q_MOVABLE_TYPE); // Q_PRIMITIVE_TYPE: not possible, m_state is = 1, not 0.
QT_END_NAMESPACE