diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2017-09-07 17:31:40 +0200 |
---|---|---|
committer | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2017-10-05 14:52:28 +0000 |
commit | 49e74cf274be7cf2633af89f81ac4fcbfe174d7d (patch) | |
tree | c4de715244376690a01d7df308d71e6aaf11c34b | |
parent | 76dd5b4749516882b7fb44c40864450cff91441a (diff) |
Doc: List relevant source files under each chapter
The example used in the tutorial is split into several source files,
which were listed towards the end of the tutorial. Instead of this
big list at the end, listing only relevant files under each chapter
seems ideal.
Task-number: QTBUG-60629
Change-Id: I2d877f4e4e9a7b91f9def1f00dc545e0842458c7
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/qml/doc/src/cppintegration/extending-tutorial.qdoc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/qml/doc/src/cppintegration/extending-tutorial.qdoc b/src/qml/doc/src/cppintegration/extending-tutorial.qdoc index 58cc650e01..704bafa5d2 100644 --- a/src/qml/doc/src/cppintegration/extending-tutorial.qdoc +++ b/src/qml/doc/src/cppintegration/extending-tutorial.qdoc @@ -150,6 +150,10 @@ Now we can build and run the application: cannot update the binding if the \c name value changes. This is addressed in the following chapters. +The source code from the following files are referred to in this chapter: +\noautolist +\generatelist examplefiles .*chapter1.* + \section1 Chapter 2: Connecting to C++ Methods and Signals \c extending-qml/chapter2-methods @@ -189,6 +193,9 @@ disappears, and the application outputs: qml: The chart has been cleared \endcode +The source code from the following files are referred to in this chapter: +\generatelist examplefiles .*chapter2.* + \section1 Chapter 3: Adding Property Bindings \c extending-qml/chapter3-bindings @@ -237,6 +244,9 @@ automatically updated and cannot be used as flexibly in QML. Also, since bindings are invoked so often and relied upon in QML usage, users of your custom QML types may see unexpected behavior if bindings are not implemented. +The source code from the following files are referred to in this chapter: +\generatelist examplefiles .*chapter3.* + \section1 Chapter 4: Using Custom Property Types \c extending-qml/chapter4-customPropertyTypes @@ -314,6 +324,9 @@ type to the "Charts" type namespace, version 1.0: \dots \snippet tutorials/extending-qml/chapter4-customPropertyTypes/main.cpp 2 +The source code from the following files are referred to in this chapter: +\generatelist examplefiles .*chapter4.* + \section1 Chapter 5: Using List Property Types \c extending-qml/chapter5-listproperties @@ -356,6 +369,9 @@ The \c PieSlice class has also been modified to include \c fromAngle and \c angl properties and to draw the slice according to these values. This is a straightforward modification if you have read the previous pages in this tutorial, so the code is not shown here. +The source code from the following files are referred to in this chapter: +\generatelist examplefiles .*chapter5.* + \section1 Chapter 6: Writing an Extension Plugin \c extending-qml/chapter6-plugins @@ -429,6 +445,9 @@ import path to the current directory so that it finds the \c qmldir file: The module "Charts" will be loaded by the QML engine, and the types provided by that module will be available for use in any QML document which imports it. +The source code from the following files are referred to in this chapter: +\generatelist examplefiles .*chapter6.* + \section1 Chapter 7: Summary In this tutorial, we've shown the basic steps for creating a QML extension: |