diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-05 19:51:16 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-05 19:51:16 (GMT) |
commit | 8f6bd97ac405f8ed31d4c6a8dd0edd8c9f1580ce (patch) | |
tree | dcb8f00cddac104c792961f0e79366a14cb1e2ab /tests/auto/declarative/visual/qmlgraphicspathview/test-pathview-2.qml | |
parent | fe239b32550e83e8a42617457adca8d7922ff92f (diff) | |
parent | f30d3602011780e598e6b55c69d0b40a9cc94e16 (diff) | |
download | Qt-8f6bd97ac405f8ed31d4c6a8dd0edd8c9f1580ce.zip Qt-8f6bd97ac405f8ed31d4c6a8dd0edd8c9f1580ce.tar.gz Qt-8f6bd97ac405f8ed31d4c6a8dd0edd8c9f1580ce.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qml: (3324 commits)
Fix test.
Remove hacky fix (breaks autotest).
Fix Behaviors for object-type properties.
Pass symbols::prefix (Action -> QmlAction)
Add license header.
Fix bad merge (compile)
Pass tst_headers::licenseCheck
Fix ListView tests.
Test fixes.
More test fixes.
Clean up QmlImageReader thread on engine destruction.
Update test to handle QmlNetworkAccessManagerFactory
Test fixes.
Add a QEXPECT_FAIL for known bug.
Fix autotest.
Add some painting benchmarks.
Make sure cookies are saved.
Fix headers::licenseCheck autotest failure
Re-add accidentally deleted file
Test SizeItemToLoader to SizeLoaderToItem resizeMode change.
...
Diffstat (limited to 'tests/auto/declarative/visual/qmlgraphicspathview/test-pathview-2.qml')
-rw-r--r-- | tests/auto/declarative/visual/qmlgraphicspathview/test-pathview-2.qml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/qmlgraphicspathview/test-pathview-2.qml b/tests/auto/declarative/visual/qmlgraphicspathview/test-pathview-2.qml new file mode 100644 index 0000000..c6d71d5 --- /dev/null +++ b/tests/auto/declarative/visual/qmlgraphicspathview/test-pathview-2.qml @@ -0,0 +1,62 @@ +import Qt 4.6 + +Rectangle { + width: 800; height: 450 + //Same as test-pathview, but with pathItemCount < model.count + + ListModel { + id: rssModel + ListElement { lColor: "red" } + ListElement { lColor: "green" } + ListElement { lColor: "yellow" } + ListElement { lColor: "blue" } + ListElement { lColor: "purple" } + ListElement { lColor: "gray" } + ListElement { lColor: "brown" } + ListElement { lColor: "thistle" } + } + + Component { + id: photoDelegate + Rectangle { + id: wrapper + width: 85; height: 85; color: lColor + scale: wrapper.PathView.scale + + transform: Rotation { + id: itemRotation; origin.x: wrapper.width/2; origin.y: wrapper.height/2 + axis.y: 1; axis.z: 0; angle: wrapper.PathView.angle + } + } + } + + PathView { + id: pathView; model: rssModel; delegate: photoDelegate + y: 100; width: 800; height: 330; pathItemCount: 6; z: 1 + focus: true + path: Path { + startX: -50; startY: 40; + + PathAttribute { name: "scale"; value: 0.5 } + PathAttribute { name: "angle"; value: -45 } + + PathCubic { + x: 400; y: 220 + control1X: 140; control1Y: 40 + control2X: 210; control2Y: 220 + } + + PathAttribute { name: "scale"; value: 1.2 } + PathAttribute { name: "angle"; value: 0 } + + PathCubic { + x: 850; y: 40 + control2X: 660; control2Y: 40 + control1X: 590; control1Y: 220 + } + + PathAttribute { name: "scale"; value: 0.5 } + PathAttribute { name: "angle"; value: 45 } + } + } +} |