You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
621 B

4 years ago
import QtQuick 2.0
Rectangle {
id: container
width: 32
height: 32
4 years ago
property string caption: "Button"
signal clicked
Image {
id: menuButtonBackground
source: "Resources/menubtn-background.png"
anchors.fill: parent
}
Text {
id: menuButtonLabel
anchors.centerIn: container
color: "White"
text: container.caption
font.pointSize: 16
font.bold: true
horizontalAlignment: Text.AlignHCenter
4 years ago
}
MouseArea {
id: mouseArea
anchors.fill: parent
onClicked: container.clicked();
}
}