diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-05-01 00:06:55 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-05-01 00:06:55 (GMT) |
commit | 3e3e22b2eb1ac2cc3fa33de3810962cd95be9988 (patch) | |
tree | b45318b9328ec5c6d47885593746576016af1793 /doc/src/snippets/declarative/pathview/pathview.qml | |
parent | 5b548025ca353fa2f512356d0969b096b5b705e1 (diff) | |
download | Qt-3e3e22b2eb1ac2cc3fa33de3810962cd95be9988.zip Qt-3e3e22b2eb1ac2cc3fa33de3810962cd95be9988.tar.gz Qt-3e3e22b2eb1ac2cc3fa33de3810962cd95be9988.tar.bz2 |
PathView format conversion.
Diffstat (limited to 'doc/src/snippets/declarative/pathview/pathview.qml')
-rw-r--r-- | doc/src/snippets/declarative/pathview/pathview.qml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/pathview/pathview.qml b/doc/src/snippets/declarative/pathview/pathview.qml new file mode 100644 index 0000000..11df0a2 --- /dev/null +++ b/doc/src/snippets/declarative/pathview/pathview.qml @@ -0,0 +1,28 @@ +Rect { + width: 240; height: 200; color: 'white' +//! [0] +//! [1] + Component { + id: Delegate + Item { + id: Wrapper + width: 80; height: 80 + VerticalLayout { + Image { anchors.horizontalCenter: Name.horizontalCenter; width: 64; height: 64; source: icon } + Text { id: Name; text: name; font.size: 16} + } + } + } +//! [1] +//! [2] + PathView { + anchors.fill: parent; model: MenuModel; delegate: Delegate + path: Path { + startX: 120; startY: 100 + PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 } + PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 } + } + } +//! [2] +//! [0] +} |