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.
33 lines
661 B
33 lines
661 B
import QtQuick 2.0
|
|
|
|
Rectangle {
|
|
id: container
|
|
width: 32
|
|
height: 32
|
|
property string caption: "Button"
|
|
|
|
signal clicked
|
|
|
|
Image {
|
|
id: menuButtonBackground
|
|
source: "qrc:/bpetrov.tangraplay/imports/TangraPlay/Assets/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
|
|
}
|
|
|
|
MouseArea {
|
|
id: mouseArea
|
|
anchors.fill: parent
|
|
onClicked: container.clicked();
|
|
}
|
|
|
|
}
|
|
|