blob: 0af7d4453ad2cceb6d6ba8bb5c87efae53124963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import QtQuick 1.0
Rectangle {
anchors.topMargin: 8
border.width: 1
radius: 8
height: 20
color: "#999999"
property alias buttonText: text.text
Text {
id: text
anchors.fill: parent
font.pixelSize: 12
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
MouseArea {
anchors.fill: parent
onClicked: parent.onClicked();
onPressed: parent.color = "#646464"
onReleased: parent.color = "#999999"
hoverEnabled: true
onEntered: parent.color = "#BEBEBE"
onExited: parent.color = "#999999"
}
}
|