diff options
Diffstat (limited to 'tests/auto/sensors2qmlapi')
-rw-r--r-- | tests/auto/sensors2qmlapi/qbackends.h | 3 | ||||
-rw-r--r-- | tests/auto/sensors2qmlapi/qtemplategestureplugin.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/sensors2qmlapi/qbackends.h b/tests/auto/sensors2qmlapi/qbackends.h index 01bfa36a..de1c5c02 100644 --- a/tests/auto/sensors2qmlapi/qbackends.h +++ b/tests/auto/sensors2qmlapi/qbackends.h @@ -55,7 +55,7 @@ class TestSensorPlugin : public QObject, public QSensorBackendFactory { Q_OBJECT - Q_INTERFACES(QSensorPluginInterface QSensorChangesInterface) + Q_INTERFACES(QSensorPluginInterface:QFactoryInterface QSensorChangesInterface) public: void registerSensors() { @@ -95,6 +95,7 @@ public: qWarning() << "Can't create backend" << sensor->identifier(); return 0; } + QStringList keys() const { return QStringList() << "test";} public: static QDeclAccelerometer* stAccel; static QDeclAmbientLightSensor* stAbl; diff --git a/tests/auto/sensors2qmlapi/qtemplategestureplugin.h b/tests/auto/sensors2qmlapi/qtemplategestureplugin.h index 04e2662e..cf41e9c6 100644 --- a/tests/auto/sensors2qmlapi/qtemplategestureplugin.h +++ b/tests/auto/sensors2qmlapi/qtemplategestureplugin.h @@ -47,10 +47,10 @@ #include <qsensorgestureplugininterface.h> -class QTemplateGesturePlugin : public QObject, QSensorGesturePluginInterface +class QTemplateGesturePlugin : public QObject, public QSensorGesturePluginInterface { Q_OBJECT - Q_INTERFACES(QSensorGesturePluginInterface) + Q_INTERFACES(QSensorGesturePluginInterface:QFactoryInterface) public: explicit QTemplateGesturePlugin(); ~QTemplateGesturePlugin(); |