5 property alias textInButton: buttonText.text
9 function setText(string) { textInButton = qsTr(string); }
10 function press() { mouseArea.pressed }
11 border { left: 10; top: 10; right: 10; bottom: 10 }
15 anchors.centerIn: parent;
17 height: parent.height;
26 anchors.centerIn: parent;
27 font.pixelSize: parent.height * .5
28 elide: Text.ElideRight;
29 style: Text.Sunken; color: "white"; styleColor: "black"; smooth: true
34 width: (35*parent.height)/107 +1
36 anchors.left: parent.left
37 source: "qrc:/button/buttonLeft.png"
39 fillMode:Image.Stretch
46 anchors.right: image2.left
47 anchors.rightMargin: -1
48 anchors.left: image1.right
49 anchors.leftMargin: -1
50 source: "qrc:/button/buttonCenter.png"
51 fillMode:Image.Stretch
57 width: (35*parent.height)/107 +1
59 anchors.right: parent.right
60 source: "qrc:/button/buttonR.png"
61 fillMode:Image.Stretch
67 when: (mouseArea.pressed == true && button.enabled == true);
69 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftPushed.png" }
70 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterPushed.png" }
71 PropertyChanges { target: image2; source: "qrc:/button/buttonRightPushed.png" }
75 when: (button.enabled == false);
77 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftDisabled.png" }
78 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterDisabled.png" }
79 PropertyChanges { target: image2; source: "qrc:/button/buttonRightDisabled.png" }