summaryrefslogtreecommitdiffstats
path: root/examples/sensors
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors')
-rw-r--r--examples/sensors/grue/plugin/main.cpp3
-rw-r--r--examples/sensors/qmlsensorgestures/plugin/qcountergestureplugin.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/sensors/grue/plugin/main.cpp b/examples/sensors/grue/plugin/main.cpp
index bdafa287..50333f2d 100644
--- a/examples/sensors/grue/plugin/main.cpp
+++ b/examples/sensors/grue/plugin/main.cpp
@@ -48,7 +48,7 @@
class GrueSensorPlugin : public QObject, public QSensorPluginInterface, public QSensorChangesInterface, public QSensorBackendFactory
{
Q_OBJECT
- Q_INTERFACES(QSensorPluginInterface QSensorChangesInterface)
+ Q_INTERFACES(QSensorPluginInterface:QFactoryInterface QSensorChangesInterface)
public:
void registerSensors()
{
@@ -74,6 +74,7 @@ public:
return 0;
}
+ QStringList keys() const { return QStringList() << "grue";}
};
Q_EXPORT_PLUGIN2(libsensors_grueplugin, GrueSensorPlugin);
diff --git a/examples/sensors/qmlsensorgestures/plugin/qcountergestureplugin.h b/examples/sensors/qmlsensorgestures/plugin/qcountergestureplugin.h
index 33075f43..842afeee 100644
--- a/examples/sensors/qmlsensorgestures/plugin/qcountergestureplugin.h
+++ b/examples/sensors/qmlsensorgestures/plugin/qcountergestureplugin.h
@@ -46,10 +46,11 @@
#include <qsensorgestureplugininterface.h>
-class QCounterGesturePlugin : public QObject, QSensorGesturePluginInterface
+class QCounterGesturePlugin : public QObject, public QSensorGesturePluginInterface
{
Q_OBJECT
- Q_INTERFACES(QSensorGesturePluginInterface)
+ Q_INTERFACES(QSensorGesturePluginInterface:QFactoryInterface)
+
public:
explicit QCounterGesturePlugin();
~QCounterGesturePlugin();