diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-08-16 10:01:05 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-09-03 05:07:28 +0000 |
commit | 7f801ed73a3b9e9098fafed64c21e98ae7d73dff (patch) | |
tree | 04576916fc6d1b967f6b4a975b61b7c926a74865 /src/plugins/generic/tuiotouch/qtuiotoken_p.h | |
parent | 7fb34481617cb1a283082cb12885dd3f625e77a2 (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/qtuiotoken_p.h')
-rw-r--r-- | src/plugins/generic/tuiotouch/qtuiotoken_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/generic/tuiotouch/qtuiotoken_p.h b/src/plugins/generic/tuiotouch/qtuiotoken_p.h index 5084aeed11..b784190d53 100644 --- a/src/plugins/generic/tuiotouch/qtuiotoken_p.h +++ b/src/plugins/generic/tuiotouch/qtuiotoken_p.h @@ -138,6 +138,7 @@ private: float m_angularAcceleration; Qt::TouchPointState m_state; }; +Q_DECLARE_TYPEINFO(QTuioToken, Q_MOVABLE_TYPE); // Q_PRIMITIVE_TYPE: not possible: m_id, m_classId == -1 QT_END_NAMESPACE |