Commit 75cba4ea authored by Debao Zhang's avatar Debao Zhang Committed by Morten Johan Sørvig
Browse files

Use the new plugin system


Change-Id: Ibd3a5870945fcd2d78e0f2c8282f34f1bebd54b2
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: default avatarMorten Johan Sørvig <morten.sorvig@nokia.com>
parent 57ba98d2
No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -94,5 +94,3 @@ void StylePlugin::initializeEngine(QQmlEngine *engine, const char *uri) ...@@ -94,5 +94,3 @@ void StylePlugin::initializeEngine(QQmlEngine *engine, const char *uri)
Q_UNUSED(uri); Q_UNUSED(uri);
engine->addImageProvider("desktoptheme", new DesktopIconProvider); engine->addImageProvider("desktoptheme", new DesktopIconProvider);
} }
Q_EXPORT_PLUGIN2(styleplugin, StylePlugin);
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
class StylePlugin : public QQmlExtensionPlugin class StylePlugin : public QQmlExtensionPlugin
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.playground.qtdesktopcomponents.QQmlExtensionInterface" FILE "styleplugin.json")
public: public:
void registerTypes(const char *uri); void registerTypes(const char *uri);
void initializeEngine(QQmlEngine *engine, const char *uri); void initializeEngine(QQmlEngine *engine, const char *uri);
......
{}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment