From d3d6cc54a46e1e7e72e3ca4cfcd837cea678478d Mon Sep 17 00:00:00 2001 From: Juha Vuolle Date: Fri, 28 May 2021 09:11:11 +0300 Subject: 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 --- src/sensors/qtapsensor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sensors/qtapsensor.h') 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 - -- cgit v1.2.3