diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-08 05:04:29 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-08 05:04:29 (GMT) |
commit | df7dce62777fb953d26fcd30d6f56dc16c945ac0 (patch) | |
tree | 79047a96a5b699d55c117719b757e99d593ca3d0 /tests/auto/declarative/pathview | |
parent | 309de75f1e0ce2e85b2f58e34b876f902c9d0292 (diff) | |
download | Qt-df7dce62777fb953d26fcd30d6f56dc16c945ac0.zip Qt-df7dce62777fb953d26fcd30d6f56dc16c945ac0.tar.gz Qt-df7dce62777fb953d26fcd30d6f56dc16c945ac0.tar.bz2 |
Autotest format conversion.
Diffstat (limited to 'tests/auto/declarative/pathview')
-rw-r--r-- | tests/auto/declarative/pathview/data/pathview.qml | 60 | ||||
-rw-r--r-- | tests/auto/declarative/pathview/data/pathview.xml | 20 |
2 files changed, 60 insertions, 20 deletions
diff --git a/tests/auto/declarative/pathview/data/pathview.qml b/tests/auto/declarative/pathview/data/pathview.qml new file mode 100644 index 0000000..0fec1e9 --- /dev/null +++ b/tests/auto/declarative/pathview/data/pathview.qml @@ -0,0 +1,60 @@ +Rect { + width: 240 + height: 320 + color: "#ffffff" + resources: [ + Component { + id: Delegate + Rect { + id: wrapper + height: 20 + width: 60 + color: "white" + pen.color: "black" + Text { + text: index + } + Text { + x: 20 + id: textName + text: name + } + Text { + x: 40 + id: textNumber + text: number + } + } + } + ] + PathView { + id: view + width: 240 + height: 320 + model: testModel + delegate: Delegate + snapPos: 0.01 + path: Path { + startY: 120 + startX: 160 + PathQuad { + y: 120 + x: 80 + controlY: 330 + controlX: 100 + } + PathLine { + y: 160 + x: 20 + } + PathCubic { + y: 120 + x: 160 + control1Y: 0 + control1X: 100 + control2Y: 000 + control2X: 200 + } + } + } +} diff --git a/tests/auto/declarative/pathview/data/pathview.xml b/tests/auto/declarative/pathview/data/pathview.xml deleted file mode 100644 index 26b426c..0000000 --- a/tests/auto/declarative/pathview/data/pathview.xml +++ /dev/null @@ -1,20 +0,0 @@ -<Rect width="240" height="320" color="#ffffff"> - <resources> - <Component id="Delegate"> - <Rect id="wrapper" height="20" width="60" color="white" pen.color="black"> - <Text text="{index}"/> - <Text x="20" id="textName" text="{name}"/> - <Text x="40" id="textNumber" text="{number}"/> - </Rect> - </Component> - </resources> - <PathView id="view" width="240" height="320" model="{testModel}" delegate="{Delegate}" snapPos="0.01"> - <path> - <Path startY="120" startX="160"> - <PathQuad y="120" x="80" controlY="330" controlX="100"/> - <PathLine y="160" x="20"/> - <PathCubic y="120" x="160" control1Y="0" control1X="100" control2Y="000" control2X="200"/> - </Path> - </path> - </PathView> -</Rect> |