diff options
author | David Boddie <david.boddie@nokia.com> | 2011-02-17 20:38:27 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-02-17 20:38:27 (GMT) |
commit | e1b85d70420001f2be698d08e62b7e784a13a134 (patch) | |
tree | ca21ef6afc045e409d1c33043e4a78415df8e820 /doc/src/snippets/declarative/mousearea/mousearea-snippet.qml | |
parent | c164a5be25cb8bd70235571169b66af2fc6a8cbd (diff) | |
download | Qt-e1b85d70420001f2be698d08e62b7e784a13a134.zip Qt-e1b85d70420001f2be698d08e62b7e784a13a134.tar.gz Qt-e1b85d70420001f2be698d08e62b7e784a13a134.tar.bz2 |
Doc: Fixed links and whitespace.
Diffstat (limited to 'doc/src/snippets/declarative/mousearea/mousearea-snippet.qml')
-rw-r--r-- | doc/src/snippets/declarative/mousearea/mousearea-snippet.qml | 10 |
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 |