diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-28 03:08:21 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-28 03:08:21 (GMT) |
commit | a74086946666378f07505f1cd2d873e85fa5791b (patch) | |
tree | d630ebcebddef2c48b78c223111cae3d13979604 /doc/src/snippets | |
parent | 7ecfd4393149ce9b49e5da4e254fcecd6b8af420 (diff) | |
parent | f96710f689c8237fabbfb65f56279e2a4d1aca30 (diff) | |
download | Qt-a74086946666378f07505f1cd2d873e85fa5791b.zip Qt-a74086946666378f07505f1cd2d873e85fa5791b.tar.gz Qt-a74086946666378f07505f1cd2d873e85fa5791b.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/declarative/mouseregion.qml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/src/snippets/declarative/mouseregion.qml b/doc/src/snippets/declarative/mouseregion.qml index a464069..683770b 100644 --- a/doc/src/snippets/declarative/mouseregion.qml +++ b/doc/src/snippets/declarative/mouseregion.qml @@ -3,13 +3,21 @@ import Qt 4.7 Rectangle { width: 200; height: 100 Row { //! [0] -Rectangle { width: 100; height: 100; color: "green" - MouseArea { anchors.fill: parent; onClicked: { parent.color = 'red' } } +Rectangle { + width: 100; height: 100 + color: "green" + + MouseArea { + anchors.fill: parent + onClicked: { parent.color = 'red' } + } } //! [0] //! [1] Rectangle { - width: 100; height: 100; color: "green" + width: 100; height: 100 + color: "green" + MouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.RightButton |