diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-05-27 03:04:44 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-06 02:02:46 +0200 |
commit | 9ca509676f3e7a4c19aded98c59990a779a4a052 (patch) | |
tree | e62c1b3fb8cb5125e99744040bddeb189bab96cf /src/corelib/doc/snippets | |
parent | 044e2b326231728c0a90482c8896a8c3bad203d6 (diff) |
Update of the plugin documentation
Moved the plugin overview from qtdoc to qtbase. Updated
the docs to describe the new plugin mechanism.
Change-Id: I1b92d5099aeaa3a166c1f7698176d811d47c3392
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/doc/snippets')
-rw-r--r-- | src/corelib/doc/snippets/code/doc_src_qplugin.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/doc/snippets/code/doc_src_qplugin.cpp b/src/corelib/doc/snippets/code/doc_src_qplugin.cpp index 1577b2fa61..e07d888dee 100644 --- a/src/corelib/doc/snippets/code/doc_src_qplugin.cpp +++ b/src/corelib/doc/snippets/code/doc_src_qplugin.cpp @@ -49,7 +49,10 @@ Q_DECLARE_INTERFACE(Foo::MyInterface, "org.examples.MyInterface") //! [1] -Q_EXPORT_PLUGIN2(pnp_extrafilters, ExtraFiltersPlugin) +class MyInstance : public QObject +{ + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDummyPlugin" FILE "mymetadata.json") +}; //! [1] |