diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-03-31 01:16:22 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-03-31 01:17:17 (GMT) |
commit | 603b797d745c4129f5d2a151c9146358e36eb668 (patch) | |
tree | 99a735a19b674df84e45fa2158fa197c49b3a478 /examples/declarative/behaviors/SideRect.qml | |
parent | c9fcfbfd995c6ad81d8c65761c1b18a41783c17e (diff) | |
download | Qt-603b797d745c4129f5d2a151c9146358e36eb668.zip Qt-603b797d745c4129f5d2a151c9146358e36eb668.tar.gz Qt-603b797d745c4129f5d2a151c9146358e36eb668.tar.bz2 |
Declarative examples cleanup.
Diffstat (limited to 'examples/declarative/behaviors/SideRect.qml')
-rw-r--r-- | examples/declarative/behaviors/SideRect.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/declarative/behaviors/SideRect.qml b/examples/declarative/behaviors/SideRect.qml new file mode 100644 index 0000000..7caac45 --- /dev/null +++ b/examples/declarative/behaviors/SideRect.qml @@ -0,0 +1,16 @@ +import Qt 4.6 + +Rectangle { + id: myRect + + property string text + + width: 75; height: 50; radius: 6 + color: "#646464"; border.width: 4; border.color: "white" + + MouseArea { + anchors.fill: parent + hoverEnabled: true + onEntered: { focusRect.x = myRect.x; focusRect.y = myRect.y; focusRect.text = myRect.text } + } +} |