diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-28 02:12:05 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-28 02:18:18 (GMT) |
commit | f96710f689c8237fabbfb65f56279e2a4d1aca30 (patch) | |
tree | 2b25af3536cb04c861545a8b46e768f150d9cd59 /doc/src/snippets | |
parent | 07bbd16e98a24ccc22804c3766d15f9da406107a (diff) | |
download | Qt-f96710f689c8237fabbfb65f56279e2a4d1aca30.zip Qt-f96710f689c8237fabbfb65f56279e2a4d1aca30.tar.gz Qt-f96710f689c8237fabbfb65f56279e2a4d1aca30.tar.bz2 |
Doc fixes
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 |