summaryrefslogtreecommitdiffstats
path: root/examples/declarative/connections/Button.qml
blob: 1d46acc0ba17114c880ff7706a5a2627997d7534 (plain)
1
2
3
4
5
6
7
8
9
10
11
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() }
}