summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpictureformatplugin.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2012-05-27 04:09:13 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-08 00:12:05 +0200
commit1402660575609a5e936f7b3f656df49c60b812c4 (patch)
tree7c8d84db5155716896d2cbdd4721b7b2583f34d0 /src/gui/image/qpictureformatplugin.cpp
parentdcf3c95175a93cf883e14a6d434b4306df50cf37 (diff)
Remove QFactoryInterface from picture plugins
Change-Id: I7b02cbfb850d6a9fc90c1eb1e12a9950baf61e77 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/image/qpictureformatplugin.cpp')
-rw-r--r--src/gui/image/qpictureformatplugin.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/gui/image/qpictureformatplugin.cpp b/src/gui/image/qpictureformatplugin.cpp
index cb46790d69..d5cbb0c661 100644
--- a/src/gui/image/qpictureformatplugin.cpp
+++ b/src/gui/image/qpictureformatplugin.cpp
@@ -59,19 +59,18 @@ QT_BEGIN_NAMESPACE
transparently by applications.
Writing an picture format plugin is achieved by subclassing this
- base class, reimplementing the pure virtual functions keys(),
+ base class, reimplementing the pure virtual functions
loadPicture(), savePicture(), and installIOHandler(), and
- exporting the class with the Q_EXPORT_PLUGIN2() macro.
+ exporting the class with the Q_PLUGIN_METADATA() macro.
- \sa {How to Create Qt Plugins}
-*/
+ The json file containing the metadata should contain one entry
+ with the list of picture formats supported by the plugin:
-/*!
- \fn QStringList QPictureFormatPlugin::keys() const
+ \code
+ { "Keys": [ "mypictureformat" ] }
+ \endcode
- Returns the list of picture formats this plugin supports.
-
- \sa installIOHandler()
+ \sa {How to Create Qt Plugins}
*/
/*!