summaryrefslogtreecommitdiffstats
path: root/examples/declarative/connections/content/Button.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/connections/content/Button.qml')
-rw-r--r--examples/declarative/connections/content/Button.qml12
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..0e33c78
--- /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 }
+ MouseArea { anchors.fill: icon; onClicked: button.clicked() }
+}