From 64d0880c6bbf4dd39f35d818e456e23a14c97058 Mon Sep 17 00:00:00 2001 From: Venugopal Shivashankar Date: Thu, 30 Aug 2018 14:38:36 +0200 Subject: Doc: Add the youtube tutorial video MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The \youtube macro embeds the video within the online docs and the thumbnail JPG is used for the offline version. Change-Id: Ic26fb8b517b50e3a8be2b80b1627823fdbd37909 Reviewed-by: Paul Wicking Reviewed-by: Topi Reiniƶ --- src/quick/doc/images/9BcAYDlpuT8.jpg | Bin 0 -> 8788 bytes src/quick/doc/qtquick.qdocconf | 4 ++++ src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc | 7 ++++--- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 src/quick/doc/images/9BcAYDlpuT8.jpg (limited to 'src/quick/doc') diff --git a/src/quick/doc/images/9BcAYDlpuT8.jpg b/src/quick/doc/images/9BcAYDlpuT8.jpg new file mode 100644 index 0000000000..0a69ab0034 Binary files /dev/null and b/src/quick/doc/images/9BcAYDlpuT8.jpg differ diff --git a/src/quick/doc/qtquick.qdocconf b/src/quick/doc/qtquick.qdocconf index ad5e47002d..34ec66bf1d 100644 --- a/src/quick/doc/qtquick.qdocconf +++ b/src/quick/doc/qtquick.qdocconf @@ -89,3 +89,7 @@ navigation.qmltypespage = "Qt Quick QML Types" # \svgcolor {#ffdead} macro.svgcolor.HTML = "
" + +# youtube video thumbnails that show up in offline and online docs +HTML.extraimages += images/9BcAYDlpuT8.jpg +qhp.QtQuick.extraFiles += images/9BcAYDlpuT8.jpg diff --git a/src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc b/src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc index 2705ca5e34..e8265b92d2 100644 --- a/src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc +++ b/src/quick/doc/src/concepts/modelviewsdata/cppmodels.qdoc @@ -41,9 +41,10 @@ QObjectList or a \l QAbstractItemModel. The first three are useful for exposing simpler datasets, while QAbstractItemModel provides a more flexible solution for more complex models. -For a video tutorial that takes you through the whole process of exposing a C++ -model to QML, see the -\l {https://youtu.be/9BcAYDlpuT8}{Using C++ Models in QML Tutorial}. +Here is a video tutorial that takes you through the whole process of exposing a C++ +model to QML: + +\youtube 9BcAYDlpuT8 \section2 QStringList-based Model -- cgit v1.2.3