summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-04-28 02:12:05 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-04-28 02:18:18 (GMT)
commitf96710f689c8237fabbfb65f56279e2a4d1aca30 (patch)
tree2b25af3536cb04c861545a8b46e768f150d9cd59 /doc/src
parent07bbd16e98a24ccc22804c3766d15f9da406107a (diff)
downloadQt-f96710f689c8237fabbfb65f56279e2a4d1aca30.zip
Qt-f96710f689c8237fabbfb65f56279e2a4d1aca30.tar.gz
Qt-f96710f689c8237fabbfb65f56279e2a4d1aca30.tar.bz2
Doc fixes
Diffstat (limited to 'doc/src')
-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