summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-08-02 13:56:00 +0300
committerJuha Vuolle <juha.vuolle@insta.fi>2021-08-04 21:10:28 +0300
commit5bcc6622c4283703c9f8cb5fcf9e983b6e91b377 (patch)
treeabc1c7c082acf9efaff0eb28fb48a86a18ca33cb /src
parent768ea94fdf7e6f10767ef843d576ac4729046c67 (diff)
Make overridden QObject functions public to enable Python bindings
QSensorGesture implements a custom metaobject and does not use Q_OBJECT macro directly, but rather the key functions are overridden manually. These functions are now made public to allow Python bindings for the sensor gestures. Pick-to: 6.2 Task-number: PYSIDE-487 Task-number: QTBUG-92505 Change-Id: I3682bfa1a39b2a6d85413eb1679492d9b5bd9513 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/sensors/doc/src/qt6-changes.qdoc3
-rw-r--r--src/sensors/gestures/qsensorgesture.h8
2 files changed, 5 insertions, 6 deletions
diff --git a/src/sensors/doc/src/qt6-changes.qdoc b/src/sensors/doc/src/qt6-changes.qdoc
index 118c3700..d8db18cb 100644
--- a/src/sensors/doc/src/qt6-changes.qdoc
+++ b/src/sensors/doc/src/qt6-changes.qdoc
@@ -85,7 +85,8 @@
The property name is now aligned with the \c frontLidClosed property of
the same QML type.
- \section2 QSensorBackend::sensorBusy() and QSensor::isBusy()
+ \section2 Added parameter to QSensorBackend::sensorBusy() to be able to also clear
+ the busy state
The \c QSensor::busy property and its accessor, \c QSensor::isBusy(), can be used
to check if the sensor is busy or not. To allow this property to better reflect the
diff --git a/src/sensors/gestures/qsensorgesture.h b/src/sensors/gestures/qsensorgesture.h
index 00f132c2..cec39cf8 100644
--- a/src/sensors/gestures/qsensorgesture.h
+++ b/src/sensors/gestures/qsensorgesture.h
@@ -70,15 +70,13 @@ public:
void startDetection();
void stopDetection();
-private:
- QSensorGesturePrivate * d_ptr;
-
- // ### fixme: Qt 6: Make public to enable Qt for Python bindings
-private:
// Pretend to be a Q_OBJECT
const QMetaObject *metaObject() const override;
int qt_metacall(QMetaObject::Call, int, void **) override;
+private:
+ QSensorGesturePrivate * d_ptr;
+
Q_SIGNALS:
// these signals are created at runtime, along with
// gesture recognizer specific signals.