diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-11 21:03:04 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-12 07:48:19 +0000 |
commit | ca22a022967848358e1b2f0eec9588a0cb12a5e5 (patch) | |
tree | 1b6eb496cdc0c325f0034e6ddee40d0163ae1262 /src/gui/kernel/qtouchdevice_p.h | |
parent | 552fba23862d2f2c88bd09202b8c1b5904830128 (diff) |
QTouchDevicePrivate: deal in const QTouchDevice*s
Avoids the copying of the contents when returning devices().
Remove an unneeded #include (already includes by public
header; unneeded there, too, but leaving for SC purposes).
Change-Id: Ifa9a3dc2c7fada01fb624527dd4d16d0cb32a658
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qtouchdevice_p.h')
-rw-r--r-- | src/gui/kernel/qtouchdevice_p.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/kernel/qtouchdevice_p.h b/src/gui/kernel/qtouchdevice_p.h index 9c0bcf3414..4aff8f2f33 100644 --- a/src/gui/kernel/qtouchdevice_p.h +++ b/src/gui/kernel/qtouchdevice_p.h @@ -45,7 +45,6 @@ // We mean it. // -#include <QtCore/qobject.h> #include <QtGui/qtouchdevice.h> QT_BEGIN_NAMESPACE @@ -65,8 +64,8 @@ public: QString name; int maxTouchPoints; - static void registerDevice(QTouchDevice *dev); - static bool isRegistered(QTouchDevice *dev); + static void registerDevice(const QTouchDevice *dev); + static bool isRegistered(const QTouchDevice *dev); }; QT_END_NAMESPACE |