diff options
Diffstat (limited to 'doc/src/snippets/declarative/mouseregion.qml')
-rw-r--r-- | doc/src/snippets/declarative/mouseregion.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/snippets/declarative/mouseregion.qml b/doc/src/snippets/declarative/mouseregion.qml index d3e22cd..6d8f179 100644 --- a/doc/src/snippets/declarative/mouseregion.qml +++ b/doc/src/snippets/declarative/mouseregion.qml @@ -1,14 +1,14 @@ import Qt 4.6 -Rect { width: 200; height: 100 +Rectangle { width: 200; height: 100 HorizontalLayout { //! [0] -Rect { width: 100; height: 100; color: "green" +Rectangle { width: 100; height: 100; color: "green" MouseRegion { anchors.fill: parent; onClicked: { parent.color = 'red' } } } //! [0] //! [1] -Rect { +Rectangle { width: 100; height: 100; color: "green" MouseRegion { anchors.fill: parent |