forked from qt-creator/qt-creator
Doc: fix missing snippets
Add the path to the snippets folder to the qdocconf file and fix the paths in \snippet commands in the source file. Change-Id: Iebabec6919b580e6d1474685777862200d314a83 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
@@ -5,7 +5,8 @@ headerdirs =
|
|||||||
sourcedirs = $SRCDIR/src
|
sourcedirs = $SRCDIR/src
|
||||||
imagedirs = $SRCDIR/images $SRCDIR/templates/images
|
imagedirs = $SRCDIR/images $SRCDIR/templates/images
|
||||||
outputdir = $OUTDIR
|
outputdir = $OUTDIR
|
||||||
exampledirs = $SRCDIR/examples
|
exampledirs = $SRCDIR/examples \
|
||||||
|
$SRCDIR/snippets
|
||||||
indexes = qt.index
|
indexes = qt.index
|
||||||
|
|
||||||
include(compat.qdocconf)
|
include(compat.qdocconf)
|
||||||
|
|||||||
@@ -293,7 +293,7 @@
|
|||||||
expressions for the x and y properties, as illustrated by the
|
expressions for the x and y properties, as illustrated by the
|
||||||
following code snippet:
|
following code snippet:
|
||||||
|
|
||||||
\snippet snippets/qml/states-properties.qml states
|
\snippet qml/states-properties.qml states
|
||||||
|
|
||||||
\image qmldesigner-tutorial-state1.png "States"
|
\image qmldesigner-tutorial-state1.png "States"
|
||||||
|
|
||||||
@@ -319,7 +319,7 @@
|
|||||||
moving to State1, the x and y coordinates of the Qt logo change
|
moving to State1, the x and y coordinates of the Qt logo change
|
||||||
linearly over a duration of 1 second:
|
linearly over a duration of 1 second:
|
||||||
|
|
||||||
\snippet snippets/qml/list-of-transitions.qml first transition
|
\snippet qml/list-of-transitions.qml first transition
|
||||||
|
|
||||||
\o You can use the Qt Quick toolbar for animation to change the easing
|
\o You can use the Qt Quick toolbar for animation to change the easing
|
||||||
curve type from linear to OutBounce:
|
curve type from linear to OutBounce:
|
||||||
@@ -342,13 +342,13 @@
|
|||||||
and y coordinates of the Qt logo change over a duration of 2
|
and y coordinates of the Qt logo change over a duration of 2
|
||||||
seconds, and an InOutQuad easing function is used:
|
seconds, and an InOutQuad easing function is used:
|
||||||
|
|
||||||
\snippet snippets/qml/list-of-transitions.qml second transition
|
\snippet qml/list-of-transitions.qml second transition
|
||||||
|
|
||||||
\o Add the following code to specify that for any other state changes,
|
\o Add the following code to specify that for any other state changes,
|
||||||
the x and y coordinates of the Qt logo change linearly over a
|
the x and y coordinates of the Qt logo change linearly over a
|
||||||
duration of 200 milliseconds:
|
duration of 200 milliseconds:
|
||||||
|
|
||||||
\snippet snippets/qml/list-of-transitions.qml default transition
|
\snippet qml/list-of-transitions.qml default transition
|
||||||
|
|
||||||
\o Press \key {Ctrl+R} to run the application.
|
\o Press \key {Ctrl+R} to run the application.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user