diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-05-01 03:33:21 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-05-01 03:33:21 (GMT) |
commit | 3dea1411dbb4fe3a570c2f5516dc6b5991c6db81 (patch) | |
tree | b32418fcd269a65c64881bfae11cb8cfd2fc67d9 /doc/src/snippets/declarative/drag.qml | |
parent | 1276c6ff207ee2d5228a6282f2a632ba0c206f25 (diff) | |
parent | f5b007243af66abc320ee9022170c84e1a3f6da6 (diff) | |
download | Qt-3dea1411dbb4fe3a570c2f5516dc6b5991c6db81.zip Qt-3dea1411dbb4fe3a570c2f5516dc6b5991c6db81.tar.gz Qt-3dea1411dbb4fe3a570c2f5516dc6b5991c6db81.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'doc/src/snippets/declarative/drag.qml')
-rw-r--r-- | doc/src/snippets/declarative/drag.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/drag.qml b/doc/src/snippets/declarative/drag.qml new file mode 100644 index 0000000..3a573ad --- /dev/null +++ b/doc/src/snippets/declarative/drag.qml @@ -0,0 +1,16 @@ +//! [0] +Rect { + id: blurtest; width: 600; height: 200; color: "white" + Image { + id: pic; source: "qtlogo-64.png"; anchors.verticalCenter: parent.verticalCenter + opacity: (600.0-pic.x) / 600; + MouseRegion { + anchors.fill: parent + drag.target: pic + drag.axis: "x" + drag.xmin: 0 + drag.xmax: blurtest.width-pic.width + } + } +} +//! [0] |