diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-02-23 12:08:07 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-28 08:35:02 +0100 |
commit | afebb988c090d7a941af2ac97b3d23b364b878fc (patch) | |
tree | c928fdd9ba01fc1a5eb45f1e5a2d26a49893ab56 /demos/mobile/quickhit/plugins/LevelOne | |
parent | dbf1c74bf24eb399e1281be795cf56659adc3308 (diff) |
Use new plugin system in QtQuick1 examples/demos.
Change-Id: I76f930c32688d596aa58e28eb1d46e1ddeb57b4b
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'demos/mobile/quickhit/plugins/LevelOne')
-rw-r--r-- | demos/mobile/quickhit/plugins/LevelOne/levelone.cpp | 4 | ||||
-rw-r--r-- | demos/mobile/quickhit/plugins/LevelOne/levelone.h | 1 | ||||
-rw-r--r-- | demos/mobile/quickhit/plugins/LevelOne/levelone.json | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/demos/mobile/quickhit/plugins/LevelOne/levelone.cpp b/demos/mobile/quickhit/plugins/LevelOne/levelone.cpp index 5d3f6e6b..65fd5595 100644 --- a/demos/mobile/quickhit/plugins/LevelOne/levelone.cpp +++ b/demos/mobile/quickhit/plugins/LevelOne/levelone.cpp @@ -115,7 +115,3 @@ QVariant LevelOne::graphSize(QVariant pathToGraph) ret.setValue(imageSize); return ret; } - -// This Qt macro exports the plugin class LevelOne with the name levelplugins. -// There should be exactly one occurrence of this LevelOne macro in a Qt plugin's source code. -Q_EXPORT_PLUGIN2(levelplugins, LevelOne); diff --git a/demos/mobile/quickhit/plugins/LevelOne/levelone.h b/demos/mobile/quickhit/plugins/LevelOne/levelone.h index 91b43363..54067182 100644 --- a/demos/mobile/quickhit/plugins/LevelOne/levelone.h +++ b/demos/mobile/quickhit/plugins/LevelOne/levelone.h @@ -51,6 +51,7 @@ class LevelOne : public LevelPluginInterface { Q_OBJECT + Q_PLUGIN_METADATA(IID "Forum.Nokia.com.QuickHit.LevelPluginInterface/1.0" FILE "levelone.json") // This macro tells Qt which interfaces the class implements. // This is used when implementing plugins. diff --git a/demos/mobile/quickhit/plugins/LevelOne/levelone.json b/demos/mobile/quickhit/plugins/LevelOne/levelone.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/demos/mobile/quickhit/plugins/LevelOne/levelone.json @@ -0,0 +1 @@ +{} |