blob: f7085e3ef85da6377ca466fba4c9620e48c14eab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// MButton.qml
// Customized button
import QtQuick 2.0
import QtGraphicalEffects 1
Rectangle {
id:mbutton
property alias buttonText: textItem.text
width: textItem.implicitWidth + 10
height: textItem.implicitHeight + 10
color: "lightgrey"
radius: 5
signal mbuttonClicked
MouseArea {
anchors.fill: parent
onClicked: mbuttonClicked()
}
Text {id: textItem
anchors.centerIn: parent
}
}
|