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 }
15 Keys.onReturnPressed: {
21 anchors.centerIn: parent;
22 width: rectangle.width
23 height: rectangle.height;
33 anchors.centerIn: parent
41 width: (image1.sourceSize.width*parent.height)/image1.sourceSize.height +1 //(35*parent.height)/107 +1
43 anchors.left: parent.left
44 source: "qrc:/button/buttonLeft.png"
45 fillMode:Image.Stretch
52 anchors.right: image2.left
53 anchors.rightMargin: -1
54 anchors.left: image1.right
55 anchors.leftMargin: -1
56 source: "qrc:/button/buttonCenter.png"
57 fillMode:Image.Stretch
58 //fillMode: Image.TileHorizontally
66 width: (image1.sourceSize.width*parent.height)/image1.sourceSize.height +1//(35*parent.height)/107 +1
68 anchors.right: parent.right
69 source: "qrc:/button/buttonR.png"
70 fillMode:Image.Stretch
77 when: (rectangle.enabled == false);
78 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftDisabled.png" }
79 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterDisabled.png" }
80 PropertyChanges { target: image2; source: "qrc:/button/buttonRightDisabled.png" }
84 when: (mouseArea.pressed == true && rectangle.enabled == true);
85 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftPushed.png" }
86 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterPushed.png" }
87 PropertyChanges { target: image2; source: "qrc:/button/buttonRightPushed.png" }
91 when: (rectangle.enabled && !mouseArea.pressed && rectangle.focus)
93 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftFocus.png" }
94 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterFocus.png" }
95 PropertyChanges { target: image2; source: "qrc:/button/buttonRFocus.png" }