123456789101112131415161718192021 |
- import QtQuick 1.0
- Image {
- id: button
- property string sourceImage
- signal clicked
- width: 60
- height: 60
- source: mouseArea.pressed ? "gfx/"+sourceImage+"_down.png" : "gfx/"+sourceImage+"_up.png"
- MouseArea {
- id: mouseArea
- anchors.fill: parent
- onClicked: button.clicked()
- }
- }
|