diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2012-03-14 16:33:19 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-16 08:02:30 +0100 |
commit | 8d25a4a58c47431c589d8cbbc82e442360cf7e63 (patch) | |
tree | 14d4c0f123e602e8528298346f72df5debd2936c /src/sensors/gestures/qsensorgestureplugininterface.cpp | |
parent | b6d87d1b5141987452bc30e8b1d4115998ba6fd9 (diff) |
Use the new plugin mechanism for Sensors and SensorGestures
Plugins no longer use QFactoryInterface or Q_EXPORT_PLUGIN. Instead,
Q_PLUGIN_METADATA is used.
Meta-data is provided through a .json file that is embedded into the
plugin by moc.
For now, this meta-data is not actually used because both sensors
and gestures use a dynamic registration mechanism.
Change-Id: Ic82657e2ba5768127e13f7411ca51f60772781d8
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'src/sensors/gestures/qsensorgestureplugininterface.cpp')
-rw-r--r-- | src/sensors/gestures/qsensorgestureplugininterface.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/sensors/gestures/qsensorgestureplugininterface.cpp b/src/sensors/gestures/qsensorgestureplugininterface.cpp index ac28614b..90922c57 100644 --- a/src/sensors/gestures/qsensorgestureplugininterface.cpp +++ b/src/sensors/gestures/qsensorgestureplugininterface.cpp @@ -41,6 +41,7 @@ #include "qsensorgestureplugininterface.h" +QT_BEGIN_NAMESPACE /*! \class QSensorGesturePluginInterface @@ -81,8 +82,6 @@ Returns this plugins name. */ -QT_BEGIN_NAMESPACE - /*! Construct the QSensorGesturePluginInterface. */ @@ -95,16 +94,6 @@ QSensorGesturePluginInterface::QSensorGesturePluginInterface() */ QSensorGesturePluginInterface::~QSensorGesturePluginInterface() { - -} - -/*! - \internal - Used by the factory loader. - */ -QStringList QSensorGesturePluginInterface::keys() const -{ - return QStringList() << name(); } QT_END_NAMESPACE |