summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue/plugin/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/grue/plugin/main.cpp')
-rw-r--r--examples/sensors/grue/plugin/main.cpp3
1 files changed, 2 insertions, 1 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);