diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-05-27 07:41:02 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-08 21:34:45 +0200 |
commit | 09992c654db860b22d6b109707462346bfb5ca26 (patch) | |
tree | fb4fe67c0c15b8366ae36acf76ac61af9c9a1975 /src/widgets/styles/qstyleplugin.cpp | |
parent | 20c7fa62caad8f93e3cfa81bcbfed4b753c3e92c (diff) |
Remove QFactoryInterface from style plugins
Change-Id: I5c41f1c8b91b5e1117b9163c137de4bf5f51099c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/styles/qstyleplugin.cpp')
-rw-r--r-- | src/widgets/styles/qstyleplugin.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/widgets/styles/qstyleplugin.cpp b/src/widgets/styles/qstyleplugin.cpp index b36ffcf181..be3ea3ca64 100644 --- a/src/widgets/styles/qstyleplugin.cpp +++ b/src/widgets/styles/qstyleplugin.cpp @@ -56,22 +56,18 @@ QT_BEGIN_NAMESPACE applications using the QStyleFactory class. Writing a style plugin is achieved by subclassing this base class, - reimplementing the pure virtual keys() and create() functions, and - exporting the class using the Q_EXPORT_PLUGIN2() macro. See \l + reimplementing the pure virtual create() function, and + exporting the class using the Q_PLUGIN_METADATA() macro. See \l {How to Create Qt Plugins} for details. - \sa QStyleFactory, QStyle -*/ - -/*! - \fn QStringList QStylePlugin::keys() const - - Returns the list of style keys this plugin supports. + The json metadata file for the plugin needs to contain information + about the names of the styles the plugins supports as follows: - These keys are usually the class names of the custom styles that - are implemented in the plugin. + \code + { "Keys": [ "mystyle" ] } + \endcode - \sa create() + \sa QStyleFactory, QStyle */ /*! |