summaryrefslogtreecommitdiffstats
path: root/src/sensors/qtapsensor.h
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-05-28 09:11:11 +0300
committerJuha Vuolle <juha.vuolle@insta.fi>2021-06-02 08:09:41 +0300
commitd3d6cc54a46e1e7e72e3ca4cfcd837cea678478d (patch)
tree59050ef87a4b5b78ddd222ec5405bd269ee9a3e9 /src/sensors/qtapsensor.h
parent4c8ebb02cd14c710208f4514151df1d1f0132a11 (diff)
Few cleanups and modernizations
This commit introduces few source compatible changes: - Change obsoleted Q_ENUMS => Q_ENUM - Mark QSensor::type property as CONSTANT as it cannot change - Add change signal to QSensor::identifier and a testcase for it Task-number: QTBUG-92505 Change-Id: I6e3a652929d15bc5211448be2ae9254ed6d21118 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/sensors/qtapsensor.h')
-rw-r--r--src/sensors/qtapsensor.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sensors/qtapsensor.h b/src/sensors/qtapsensor.h
index 33922f38..369ab03d 100644
--- a/src/sensors/qtapsensor.h
+++ b/src/sensors/qtapsensor.h
@@ -49,7 +49,6 @@ class QTapReadingPrivate;
class Q_SENSORS_EXPORT QTapReading : public QSensorReading
{
Q_OBJECT
- Q_ENUMS(TapDirection)
Q_PROPERTY(TapDirection tapDirection READ tapDirection)
Q_PROPERTY(bool doubleTap READ isDoubleTap)
DECLARE_READING(QTapReading)
@@ -69,6 +68,7 @@ public:
Y_Both = 0x0222,
Z_Both = 0x0444
};
+ Q_ENUM(TapDirection)
TapDirection tapDirection() const;
void setTapDirection(TapDirection tapDirection);
@@ -112,4 +112,3 @@ private:
QT_END_NAMESPACE
#endif
-