diff options
-rw-r--r-- | src/plugins/sensors/sensortag/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/sensors/sensortag/main.cpp b/src/plugins/sensors/sensortag/main.cpp index 9ad5cd7..e8ab477 100644 --- a/src/plugins/sensors/sensortag/main.cpp +++ b/src/plugins/sensors/sensortag/main.cpp @@ -61,7 +61,7 @@ class SensortagSensorPlugin : public QObject, public QSensorPluginInterface, pub public: - void registerSensors() + void registerSensors() override { if (!QSensorManager::isBackendRegistered(QAccelerometer::sensorType, SensorTagAccelerometer::id)) QSensorManager::registerBackend(QAccelerometer::sensorType, SensorTagAccelerometer::id, this); @@ -88,7 +88,7 @@ public: QSensorManager::registerBackend(QMagnetometer::sensorType, SensorTagMagnetometer::id, this); } - QSensorBackend *createBackend(QSensor *sensor) + QSensorBackend *createBackend(QSensor *sensor) override { if (sensor->identifier() == SensorTagAccelerometer::id) return new SensorTagAccelerometer(sensor); |