diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-07-19 03:26:10 (GMT) |
---|---|---|
committer | Toby Tomkins <toby.tomkins@nokia.com> | 2010-07-29 07:05:10 (GMT) |
commit | 7a8f837ab4ec682632d78de333f682bf9c057d4d (patch) | |
tree | ffafc75917d6144a14055c22f490a227b793b450 /doc | |
parent | c8f85c4e94eaf894ecdb7ef854c194fe9f478d2d (diff) | |
download | Qt-7a8f837ab4ec682632d78de333f682bf9c057d4d.zip Qt-7a8f837ab4ec682632d78de333f682bf9c057d4d.tar.gz Qt-7a8f837ab4ec682632d78de333f682bf9c057d4d.tar.bz2 |
PathView doc clarification.
(cherry picked from commit 931222b7d665e101ada070afb51b82f9bb85db6d)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/examples/qml-examples.qdoc | 9 | ||||
-rw-r--r-- | doc/src/snippets/declarative/pathview/pathattributes.qml | 12 |
2 files changed, 15 insertions, 6 deletions
diff --git a/doc/src/examples/qml-examples.qdoc b/doc/src/examples/qml-examples.qdoc index 9e0d6f1..3f90fc6 100644 --- a/doc/src/examples/qml-examples.qdoc +++ b/doc/src/examples/qml-examples.qdoc @@ -314,6 +314,15 @@ */ /*! + \title Models and Views: PathView + \example declarative/modelviews/pathview + + This example shows how to use the PathView element. + + \image qml-pathview-example.png +*/ + +/*! \title Models and Views: Object ListModel \example declarative/modelviews/objectlistmodel diff --git a/doc/src/snippets/declarative/pathview/pathattributes.qml b/doc/src/snippets/declarative/pathview/pathattributes.qml index 8d424a8..4daee63 100644 --- a/doc/src/snippets/declarative/pathview/pathattributes.qml +++ b/doc/src/snippets/declarative/pathview/pathattributes.qml @@ -49,8 +49,8 @@ Rectangle { id: delegate Item { width: 80; height: 80 - scale: PathView.scale - opacity: PathView.opacity + scale: PathView.iconScale + opacity: PathView.iconOpacity Column { Image { anchors.horizontalCenter: name.horizontalCenter; width: 64; height: 64; source: icon } Text { text: name; font.pointSize: 16} @@ -66,11 +66,11 @@ Rectangle { delegate: delegate path: Path { startX: 120; startY: 100 - PathAttribute { name: "scale"; value: 1.0 } - PathAttribute { name: "opacity"; value: 1.0 } + PathAttribute { name: "iconScale"; value: 1.0 } + PathAttribute { name: "iconOpacity"; value: 1.0 } PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 } - PathAttribute { name: "scale"; value: 0.3 } - PathAttribute { name: "opacity"; value: 0.5 } + PathAttribute { name: "iconScale"; value: 0.3 } + PathAttribute { name: "iconOpacity"; value: 0.5 } PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 } } } |