diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-05 10:25:45 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-05 10:25:45 (GMT) |
commit | f30d3602011780e598e6b55c69d0b40a9cc94e16 (patch) | |
tree | 12449eb61dc1f119d9254198979ec51295fa9151 /doc/src/snippets/declarative/pathview/pathattributes.qml | |
parent | 349e9189e205c3dfdef271798310d1f38163b891 (diff) | |
parent | 1f221f04afb2fc8a1426d30f77f3e6026fdbdab7 (diff) | |
download | Qt-f30d3602011780e598e6b55c69d0b40a9cc94e16.zip Qt-f30d3602011780e598e6b55c69d0b40a9cc94e16.tar.gz Qt-f30d3602011780e598e6b55c69d0b40a9cc94e16.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 'doc/src/snippets/declarative/pathview/pathattributes.qml')
-rw-r--r-- | doc/src/snippets/declarative/pathview/pathattributes.qml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/pathview/pathattributes.qml b/doc/src/snippets/declarative/pathview/pathattributes.qml new file mode 100644 index 0000000..19a192c --- /dev/null +++ b/doc/src/snippets/declarative/pathview/pathattributes.qml @@ -0,0 +1,36 @@ +import Qt 4.6 + +Rectangle { + width: 240; height: 200; color: 'white' +//! [0] +//! [1] + Component { + id: delegate + Item { + id: wrapper + width: 80; height: 80 + scale: PathView.scale + opacity: PathView.opacity + Column { + Image { anchors.horizontalCenter: name.horizontalCenter; width: 64; height: 64; source: icon } + Text { id: name; text: name; font.pointSize: 16} + } + } + } +//! [1] +//! [2] + PathView { + anchors.fill: parent; model: MenuModel; delegate: delegate + path: Path { + startX: 120; startY: 100 + PathAttribute { name: "scale"; value: 1.0 } + PathAttribute { name: "opacity"; value: 1.0 } + PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 } + PathAttribute { name: "scale"; value: 0.3 } + PathAttribute { name: "opacity"; value: 0.5 } + PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 } + } + } +//! [2] +//! [0] +} |