diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-07-14 10:09:51 (GMT) |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2010-07-14 10:09:51 (GMT) |
commit | 6dc2f2a86a95977202ccd08fe85b0cb45c1f95b8 (patch) | |
tree | 699e7bd42d1f741257f4fa07b0148ab0a819c349 /doc/src/snippets | |
parent | ea6a5146397b668bf535ee7249bd4262d6185234 (diff) | |
parent | 5878027280de47e8b8fc72a4d0d48f5e5f6dc7db (diff) | |
download | Qt-6dc2f2a86a95977202ccd08fe85b0cb45c1f95b8.zip Qt-6dc2f2a86a95977202ccd08fe85b0cb45c1f95b8.tar.gz Qt-6dc2f2a86a95977202ccd08fe85b0cb45c1f95b8.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/declarative/mousearea.qml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/src/snippets/declarative/mousearea.qml b/doc/src/snippets/declarative/mousearea.qml index 8e7c737..fb6cba0 100644 --- a/doc/src/snippets/declarative/mousearea.qml +++ b/doc/src/snippets/declarative/mousearea.qml @@ -83,17 +83,18 @@ Rectangle { id: container width: 600; height: 200 - Image { - id: pic - source: "pics/qt.png" - opacity: (600.0 - pic.x) / 600 + Rectangle { + id: rect + width: 50; height: 50 + color: "red" + opacity: (600.0 - rect.x) / 600 MouseArea { anchors.fill: parent - drag.target: pic + drag.target: rect drag.axis: Drag.XAxis drag.minimumX: 0 - drag.maximumX: container.width - pic.width + drag.maximumX: container.width - rect.width } } } |