6 property alias pathToIcon: image.source;
7 property int iconWidth:rectangle.width-8;
8 property int iconHeight:rectangle.height-8;
11 function press() { mouseArea.pressed }
17 anchors.centerIn: parent;
18 width: rectangle.width
19 height: rectangle.height;
29 anchors.centerIn: parent
38 width: (35*parent.height)/107 +1
40 anchors.left: parent.left
41 source: "qrc:/button/buttonLeft.png"
49 anchors.right: image2.left
50 anchors.rightMargin: -1
51 anchors.left: image1.right
52 anchors.leftMargin: -1
53 source: "qrc:/button/buttonCenter.png"
62 width: (35*parent.height)/107 +1
64 anchors.right: parent.right
65 source: "qrc:/button/buttonR.png"
72 when: (rectangle.enabled == false);
73 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftDisabled.png" }
74 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterDisabled.png" }
75 PropertyChanges { target: image2; source: "qrc:/button/buttonRightDisabled.png" }
79 when: (mouseArea.pressed == true && rectangle.enabled == true);
80 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftPushed.png" }
81 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterPushed.png" }
82 PropertyChanges { target: image2; source: "qrc:/button/buttonRightPushed.png" }