diff options
Diffstat (limited to 'examples/declarative/connections/content/Button.qml')
-rw-r--r-- | examples/declarative/connections/content/Button.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/declarative/connections/content/Button.qml b/examples/declarative/connections/content/Button.qml new file mode 100644 index 0000000..1d46acc --- /dev/null +++ b/examples/declarative/connections/content/Button.qml @@ -0,0 +1,12 @@ +import Qt 4.6 + +Item { + id: button + width: 48; height: 48 + + property alias image: icon.source + signal clicked + + Image { id: icon } + MouseRegion { anchors.fill: icon; onClicked: button.clicked() } +} |