diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-07-14 05:10:28 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-07-14 05:10:28 (GMT) |
commit | 72d005edf85d2fa49a8543ae4c23f7a2268a589f (patch) | |
tree | 8355f6ad54e83a0cea4026c05cd5cbdcbd5a027f /examples/declarative/loader/Button.qml | |
parent | 59b3e3ba52891197510115f912e7934ac1784d7c (diff) | |
download | Qt-72d005edf85d2fa49a8543ae4c23f7a2268a589f.zip Qt-72d005edf85d2fa49a8543ae4c23f7a2268a589f.tar.gz Qt-72d005edf85d2fa49a8543ae4c23f7a2268a589f.tar.bz2 |
Move QmlTimer to util/
Diffstat (limited to 'examples/declarative/loader/Button.qml')
-rw-r--r-- | examples/declarative/loader/Button.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/loader/Button.qml b/examples/declarative/loader/Button.qml new file mode 100644 index 0000000..3efedc4 --- /dev/null +++ b/examples/declarative/loader/Button.qml @@ -0,0 +1,14 @@ +Rect { + id: Container + + property var text + signal clicked + + height: Text.height + 10 + width: Text.width + 20 + pen.width: 1 + radius: 4 + color: "grey" + MouseRegion { anchors.fill: parent; onClicked: Container.clicked() } + Text { id: Text; anchors.centeredIn:parent; font.size: 10; text: parent.text } +} |