summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/mousearea
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-02-17 20:38:27 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-02-17 20:38:27 (GMT)
commite1b85d70420001f2be698d08e62b7e784a13a134 (patch)
treeca21ef6afc045e409d1c33043e4a78415df8e820 /doc/src/snippets/declarative/mousearea
parentc164a5be25cb8bd70235571169b66af2fc6a8cbd (diff)
downloadQt-e1b85d70420001f2be698d08e62b7e784a13a134.zip
Qt-e1b85d70420001f2be698d08e62b7e784a13a134.tar.gz
Qt-e1b85d70420001f2be698d08e62b7e784a13a134.tar.bz2
Doc: Fixed links and whitespace.
Diffstat (limited to 'doc/src/snippets/declarative/mousearea')
-rw-r--r--doc/src/snippets/declarative/mousearea/mousearea-snippet.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/snippets/declarative/mousearea/mousearea-snippet.qml b/doc/src/snippets/declarative/mousearea/mousearea-snippet.qml
index 99cdc8b..03473ba 100644
--- a/doc/src/snippets/declarative/mousearea/mousearea-snippet.qml
+++ b/doc/src/snippets/declarative/mousearea/mousearea-snippet.qml
@@ -47,7 +47,7 @@ Rectangle {
width: 500; height: 500
color: "green"
-Column {
+Column {
//! [anchor fill]
Rectangle {
id: button
@@ -68,21 +68,21 @@ Rectangle {
id: button
width: 100; height: 100
-//! [enable handlers]
+//! [enable handlers]
MouseArea {
hoverEnabled: true
acceptedButtons: Qt.LeftButton | Qt.RightButton
onEntered: console.log("mouse entered the area")
onExited: console.log("mouse left the area")
}
-//! [enable handlers]
+//! [enable handlers]
}
Rectangle {
id: button
width: 100; height: 100
-//! [mouse handlers]
+//! [mouse handlers]
MouseArea {
anchors.fill: parent
onClicked: console.log("area clicked")
@@ -90,7 +90,7 @@ Rectangle {
onEntered: console.log("mouse entered the area")
onExited: console.log("mouse left the area")
}
-//! [mouse handlers]
+//! [mouse handlers]
}
} //end of column