5 property alias textInButton: buttonText.text
9 function setText(string) { textInButton = 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 anchors.centerIn: parent;
33 radius: parent.height*.4;
37 height: parent.height;
42 width: (35*parent.height)/107 +1
44 anchors.left: parent.left
45 source: "qrc:/button/buttonLeft.png"
46 fillMode:Image.Stretch
52 width: parent.width - ((70*parent.height)/107) +1;
54 anchors.horizontalCenter: parent.horizontalCenter
55 source: "qrc:/button/buttonCenter.png"
56 fillMode:Image.Stretch
62 width: (35*parent.height)/107 +1
64 anchors.right: parent.right
65 source: "qrc:/button/buttonR.png"
66 fillMode:Image.Stretch
71 name: "pressed"; when: mouseArea.pressed == true
72 PropertyChanges { target: shade; opacity: 0.4 }
73 PropertyChanges { target: image1; opacity: 0.5 }
74 PropertyChanges { target: image3; opacity: 0.5 }
75 PropertyChanges { target: image2; opacity: 0.5 }
83 anchors.centerIn: parent;
84 width: ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)) - ((70*parent.height)/107)
94 anchors.centerIn: parent;
95 font.pixelSize: parent.height * .5
96 style: Text.Sunken; color: "white"; styleColor: "black"; smooth: true
99 width: (button.width> buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.8)
105 anchors.centerIn: parent;
106 radius: parent.height*.4;
109 width: ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60))
110 height: parent.height
115 width: (35*parent.height)/107 +1
116 height: parent.height
117 anchors.left: parent.left
118 anchors.leftMargin: (parent.width - ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)))/2
119 source: "qrc:/button/buttonLeft.png"
125 width: (((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)) - ((70*parent.height)/107))+1
126 height: parent.height
127 anchors.horizontalCenter: parent.horizontalCenter
128 source: "qrc:/button/buttonCenter.png"
134 width: (35*parent.height)/107 +1
135 height: parent.height
136 anchors.right: parent.right
137 anchors.rightMargin: (parent.width - ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)))/2
138 source: "qrc:/button/buttonR.png"
143 name: "pressed"; when: mouseArea.pressed == true
144 PropertyChanges { target: shade; opacity: 0.4 }
145 PropertyChanges { target: image1; opacity: 0.5 }
146 PropertyChanges { target: image3; opacity: 0.5 }
147 PropertyChanges { target: image2; opacity: 0.5 }