summaryrefslogtreecommitdiffstats
path: root/src/sensorsquick/qmllidsensor_p.h
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-06-03 13:12:52 +0300
committerJuha Vuolle <juha.vuolle@insta.fi>2021-06-15 11:36:02 +0300
commit54b3ca67ad7230a21d76c581dd4287401acb230f (patch)
tree2d9b59930700cf99b7553c21a5846c4bee6f9191 /src/sensorsquick/qmllidsensor_p.h
parentae82c50ca7fd5e356a736467e660acd976ec2e25 (diff)
Increase QtSensors QML autotest coverage
This commit introduces QML based auto tests in order to increase the autotest coverage. Additionally the QML sensor activity handling is fixed which caused the newly added tests to fail. There are also long-standing bugs about these activeChanged() double emits. Pick-to: 6.2 Task-number: QTBUG-92514 Task-number: QTBUG-70770 Task-number: QTBUG-80755 Change-Id: I98f036f665a056c441efa00aab76ec47bc628057 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/sensorsquick/qmllidsensor_p.h')
-rw-r--r--src/sensorsquick/qmllidsensor_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sensorsquick/qmllidsensor_p.h b/src/sensorsquick/qmllidsensor_p.h
index 6a58ce53..99f6eba3 100644
--- a/src/sensorsquick/qmllidsensor_p.h
+++ b/src/sensorsquick/qmllidsensor_p.h
@@ -75,7 +75,7 @@ private:
class Q_SENSORSQUICK_PRIVATE_EXPORT QmlLidReading : public QmlSensorReading
{
Q_OBJECT
- Q_PROPERTY(bool backLidChanged READ backLidChanged NOTIFY backLidChanged)
+ Q_PROPERTY(bool backLidClosed READ backLidClosed NOTIFY backLidChanged)
Q_PROPERTY(bool frontLidClosed READ frontLidClosed NOTIFY frontLidChanged)
QML_NAMED_ELEMENT(LidReading)
QML_UNCREATABLE("Cannot create LidReading")
@@ -84,7 +84,7 @@ public:
explicit QmlLidReading(QLidSensor *sensor);
~QmlLidReading();
- bool backLidChanged() const;
+ bool backLidClosed() const;
bool frontLidClosed() const;
Q_SIGNALS: