diff options
Diffstat (limited to 'src/qml/doc/src/modules/cppplugins.qdoc')
-rw-r--r-- | src/qml/doc/src/modules/cppplugins.qdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/doc/src/modules/cppplugins.qdoc b/src/qml/doc/src/modules/cppplugins.qdoc index 887e7ccd0c..2875dd9a83 100644 --- a/src/qml/doc/src/modules/cppplugins.qdoc +++ b/src/qml/doc/src/modules/cppplugins.qdoc @@ -68,7 +68,7 @@ as a new QML element. It provides the current time through \c hour and \c minute properties. - \snippet examples/qml/cppextensions/plugins/plugin.cpp 0 + \snippet examples/qml/plugins/plugin.cpp 0 \dots To make this type available, we create a plugin class named \c QExampleQmlPlugin @@ -78,7 +78,7 @@ definition to register the plugin with the Qt meta object system using a unique identifier for the plugin. - \snippet examples/qml/cppextensions/plugins/plugin.cpp plugin + \snippet examples/qml/plugins/plugin.cpp plugin The \c TimeModel class receives a \c{1.0} version of this plugin library, as a QML type called \c Time. The Q_ASSERT() macro can ensure the type namespace is @@ -111,15 +111,15 @@ that is built by the project (as shown above in the \c .pro file) so both of these need to be specified in the \c qmldir file: - \quotefile examples/qml/cppextensions/plugins/com/nokia/TimeExample/qmldir + \quotefile examples/qml/plugins/com/nokia/TimeExample/qmldir Once the project is built and installed, the new \c Time component is accessible by any QML component that imports the \c com.nokia.TimeExample module - \snippet examples/qml/cppextensions/plugins/plugins.qml 0 + \snippet examples/qml/plugins/plugins.qml 0 - The full source code is available in the \l {qml/cppextensions/plugins}{plugins example}. + The full source code is available in the \l {qml/plugins}{plugins example}. \section1 Reference |