summaryrefslogtreecommitdiffstats
path: root/examples/declarative/connections/content/Button.qml
blob: f95afbb709512c6ff0939c51a64575b5a1f01d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Qt 4.7

Item {
    id: button
    width: 48; height: 48

    property alias image: icon.source
    signal clicked

    Image { id: icon }
    MouseArea { anchors.fill: icon; onClicked: button.clicked() }
}