summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsensor/test_sensorplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qsensor/test_sensorplugin.cpp')
-rw-r--r--tests/auto/qsensor/test_sensorplugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qsensor/test_sensorplugin.cpp b/tests/auto/qsensor/test_sensorplugin.cpp
index fe119619..a48428b3 100644
--- a/tests/auto/qsensor/test_sensorplugin.cpp
+++ b/tests/auto/qsensor/test_sensorplugin.cpp
@@ -44,7 +44,7 @@ class TestSensorPlugin : public QObject,
Q_PLUGIN_METADATA(IID "com.qt-project.Qt.QSensorPluginInterface/1.0")
Q_INTERFACES(QSensorPluginInterface QSensorChangesInterface)
public:
- void registerSensors()
+ void registerSensors() override
{
static bool recursive = false;
QVERIFY2(!recursive, "Recursively called TestSensorPlugin::registerSensors!");
@@ -62,7 +62,7 @@ public:
QSensorManager::registerBackend(TestSensor2::type, testsensor2impl::id, this);
}
- void sensorsChanged()
+ void sensorsChanged() override
{
// Register a new type on initial load
// This is testing the "don't emit availableSensorsChanged() too many times" functionality.
@@ -80,7 +80,7 @@ public:
}
}
- QSensorBackend *createBackend(QSensor *sensor)
+ QSensorBackend *createBackend(QSensor *sensor) override
{
if (sensor->identifier() == testsensorimpl::id) {
return new testsensorimpl(sensor);