5 property alias textInButton: buttonText.text
9 function setText(string) { textInButton = qsTr(string); }
10 border { left: 10; top: 10; right: 10; bottom: 10 }
14 anchors.centerIn: parent;
16 height: parent.height;
25 anchors.centerIn: parent;
26 font.pixelSize: parent.height * .5
27 style: Text.Sunken; color: "white"; styleColor: "black"; smooth: true
32 width: (35*parent.height)/107 +1
34 anchors.left: parent.left
35 source: "qrc:/button/buttonLeft.png"
36 fillMode:Image.Stretch
42 width: parent.width - ((70*parent.height)/107) +1;
44 anchors.horizontalCenter: parent.horizontalCenter
45 source: "qrc:/button/buttonCenter.png"
46 fillMode:Image.Stretch
52 width: (35*parent.height)/107 +1
54 anchors.right: parent.right
55 source: "qrc:/button/buttonR.png"
56 fillMode:Image.Stretch
62 when: (mouseArea.pressed == true && button.enabled == true);
64 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftPushed.png" }
65 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterPushed.png" }
66 PropertyChanges { target: image2; source: "qrc:/button/buttonRightPushed.png" }
70 when: (button.enabled == false);
72 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftDisabled.png" }
73 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterDisabled.png" }
74 PropertyChanges { target: image2; source: "qrc:/button/buttonRightDisabled.png" }