aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlextensionplugin.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@digia.com>2012-11-28 18:32:31 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-28 20:44:04 +0100
commitb68d7ab0a52ea9e94a3e62767357e0c735727969 (patch)
tree9098d0948cb373e8ca9849fc85f3cc9b2b3f5055 /src/qml/qml/qqmlextensionplugin.cpp
parent482d2bd1a91e33baff2d272a490311c58a376462 (diff)
Docs: Fix some reference errors
Change-Id: Idf616d765398fe694b203dde595347f642ce503e Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/qml/qml/qqmlextensionplugin.cpp')
-rw-r--r--src/qml/qml/qqmlextensionplugin.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/qml/qml/qqmlextensionplugin.cpp b/src/qml/qml/qqmlextensionplugin.cpp
index 2f0e804019..9f2272a04e 100644
--- a/src/qml/qml/qqmlextensionplugin.cpp
+++ b/src/qml/qml/qqmlextensionplugin.cpp
@@ -76,7 +76,7 @@ QT_BEGIN_NAMESPACE
as a new QML element. It provides the current time through \c hour and \c minute
properties, like this:
- \snippet examples/qml/plugins/plugin.cpp 0
+ \snippet plugins/plugin.cpp 0
\dots
To make this class available as a QML type, create a plugin that registers
@@ -84,9 +84,7 @@ QT_BEGIN_NAMESPACE
module will be named \c TimeExample (as defined in the project
file further below).
- \snippet examples/qml/plugins/plugin.cpp plugin
- \codeline
- \snippet examples/qml/plugins/plugin.cpp export
+ \snippet plugins/plugin.cpp plugin
This registers the \c TimeModel class with the 1.0 version of this
plugin library, as a QML type called \c Time. The Q_ASSERT statement
@@ -110,12 +108,12 @@ QT_BEGIN_NAMESPACE
should be bundled with the plugin, so it needs to be specified in the \c qmldir
file:
- \quotefile examples/qml/plugins/imports/TimeExample/qmldir
+ \quotefile plugins/imports/TimeExample/qmldir
Once the project is built and installed, the new \c Time element can be
used by any QML component that imports the \c TimeExample module:
- \snippet examples/qml/plugins/plugins.qml 0
+ \snippet plugins/plugins.qml 0
The full source code is available in the \l {qml/plugins}{plugins example}.