summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-04-28 03:08:21 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-04-28 03:08:21 (GMT)
commita74086946666378f07505f1cd2d873e85fa5791b (patch)
treed630ebcebddef2c48b78c223111cae3d13979604 /doc/src/snippets
parent7ecfd4393149ce9b49e5da4e254fcecd6b8af420 (diff)
parentf96710f689c8237fabbfb65f56279e2a4d1aca30 (diff)
downloadQt-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.qml14
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