Doc: correct the format of Q_PLUGIN_METADATA macro in sample codes

Change-Id: I464a0c0a590b0b90cf0fe7ccd448ee9bf704bd4f
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Zhang Xingtao 2014-06-12 19:11:35 +08:00 committed by The Qt Project
parent 490e79e39e
commit 02b7b21f9b
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
class MyStylePlugin : public QStylePlugin class MyStylePlugin : public QStylePlugin
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE mystyleplugin.json) Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "mystyleplugin.json")
public: public:
QStyle *create(const QString &key); QStyle *create(const QString &key);
}; };

View File

@ -45,7 +45,7 @@
class MyStylePlugin : public QStylePlugin class MyStylePlugin : public QStylePlugin
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE mystyleplugin.json) Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "mystyleplugin.json")
public: public:
MyStylePlugin(QObject *parent = 0); MyStylePlugin(QObject *parent = 0);