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
37 width: (image1.sourceSize.width*parent.height)/image1.sourceSize.height +1 //(35*parent.height)/107 +1
39 anchors.left: parent.left
40 source: "qrc:/button/buttonLeft.png"
41 fillMode:Image.Stretch
48 anchors.right: image2.left
49 anchors.rightMargin: -1
50 anchors.left: image1.right
51 anchors.leftMargin: -1
52 source: "qrc:/button/buttonCenter.png"
53 fillMode:Image.Stretch
54 //fillMode: Image.TileHorizontally
62 width: (image1.sourceSize.width*parent.height)/image1.sourceSize.height +1//(35*parent.height)/107 +1
64 anchors.right: parent.right
65 source: "qrc:/button/buttonR.png"
66 fillMode:Image.Stretch
73 when: (rectangle.enabled == false);
74 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftDisabled.png" }
75 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterDisabled.png" }
76 PropertyChanges { target: image2; source: "qrc:/button/buttonRightDisabled.png" }
80 when: (mouseArea.pressed == true && rectangle.enabled == true);
81 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftPushed.png" }
82 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterPushed.png" }
83 PropertyChanges { target: image2; source: "qrc:/button/buttonRightPushed.png" }
87 when: (rectangle.enabled && !mouseArea.pressed && rectangle.focus)
89 PropertyChanges { target: image1; source: "qrc:/button/buttonLeftFocus.png" }
90 PropertyChanges { target: image3; source: "qrc:/button/buttonCenterFocus.png" }
91 PropertyChanges { target: image2; source: "qrc:/button/buttonRFocus.png" }