diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-07-26 13:56:14 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-26 14:25:49 +0200 |
commit | b31501020fa138f7125c1d6bedeb0d64ebd81d6d (patch) | |
tree | ede67a2cbecc3204604483047ecf409fb4039fb7 /src/widgets/styles/qstyleplugin.cpp | |
parent | 3658eedc971a62a5ea8b202e0dd9f89abacdb61e (diff) |
Fixup the plugin documentation
Move the plugin howto from qtdoc to corelib where
it belongs. Fix the snippets and remove all
remaining references to Q_EXPORT_PLUGIN
Task-number: QTBUG-26237
Change-Id: I43dce2ffa42193b7a992fa1a0f2fcb2f633037b2
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/widgets/styles/qstyleplugin.cpp')
-rw-r--r-- | src/widgets/styles/qstyleplugin.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/widgets/styles/qstyleplugin.cpp b/src/widgets/styles/qstyleplugin.cpp index ed68b7cbc1..63d11af963 100644 --- a/src/widgets/styles/qstyleplugin.cpp +++ b/src/widgets/styles/qstyleplugin.cpp @@ -57,15 +57,17 @@ QT_BEGIN_NAMESPACE Writing a style plugin is achieved by subclassing this base class, 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. + exporting the class using the Q_PLUGIN_METADATA() macro. - The json metadata file for the plugin needs to contain information - about the names of the styles the plugins supports as follows: + \snippet qstyleplugin/main.cpp 0 + + The json metadata file \c mystyleplugin.json for the plugin needs + to contain information about the names of the styles the plugins + supports as follows: - \code - { "Keys": [ "mystyle" ] } - \endcode + \quotefile qstyleplugin/mystyleplugin.json + + See \l {How to Create Qt Plugins} for details. \sa QStyleFactory, QStyle */ @@ -79,10 +81,7 @@ QT_BEGIN_NAMESPACE The style key is usually the class name of the required style. Note that the keys are case insensitive. For example: - \snippet qstyleplugin/main.cpp 0 - \codeline \snippet qstyleplugin/main.cpp 1 - \snippet qstyleplugin/main.cpp 2 \sa keys() */ |