diff options
Diffstat (limited to 'src/gui/image/qpictureformatplugin.cpp')
-rw-r--r-- | src/gui/image/qpictureformatplugin.cpp | 17 |
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} */ /*! |