diff options
author | Juha Vuolle <juha.vuolle@insta.fi> | 2021-08-02 13:56:00 +0300 |
---|---|---|
committer | Juha Vuolle <juha.vuolle@insta.fi> | 2021-08-04 21:10:28 +0300 |
commit | 5bcc6622c4283703c9f8cb5fcf9e983b6e91b377 (patch) | |
tree | abc1c7c082acf9efaff0eb28fb48a86a18ca33cb /src/sensors/gestures | |
parent | 768ea94fdf7e6f10767ef843d576ac4729046c67 (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/sensors/gestures')
-rw-r--r-- | src/sensors/gestures/qsensorgesture.h | 8 |
1 files changed, 3 insertions, 5 deletions
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. |