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"
37 fillMode:Image.Stretch
44 anchors.right: image2.left
45 anchors.rightMargin: -1
46 anchors.left: image1.right
47 anchors.leftMargin: -1
48 source: "qrc:/button/buttonCenter.png"
49 fillMode:Image.Stretch
55 width: (35*parent.height)/107 +1
57 anchors.right: parent.right
58 source: "qrc:/button/buttonR.png"
59 fillMode:Image.Stretch
65 when: (mouseArea.pressed == true && button.enabled == true);
67 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftPushed.png" }
68 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterPushed.png" }
69 PropertyChanges { target: image2; source: "qrc:/button/buttonRightPushed.png" }
73 when: (button.enabled == false);
75 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftDisabled.png" }
76 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterDisabled.png" }
77 PropertyChanges { target: image2; source: "qrc:/button/buttonRightDisabled.png" }