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"
51 width: parent.width - ((70*parent.height)/107) +1;
53 anchors.horizontalCenter: parent.horizontalCenter
54 source: "qrc:/button/buttonCenter.png"
60 width: (35*parent.height)/107 +1
62 anchors.right: parent.right
63 source: "qrc:/button/buttonR.png"
68 name: "pressed"; when: mouseArea.pressed == true
69 PropertyChanges { target: shade; opacity: 0.4 }
70 PropertyChanges { target: image1; opacity: 0.5 }
71 PropertyChanges { target: image3; opacity: 0.5 }
72 PropertyChanges { target: image2; opacity: 0.5 }
80 anchors.centerIn: parent;
81 width: ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)) - ((70*parent.height)/107)
91 anchors.centerIn: parent;
92 font.pixelSize: parent.height * .5
93 style: Text.Sunken; color: "white"; styleColor: "black"; smooth: true
96 width: (button.width> buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.8)
102 anchors.centerIn: parent;
103 radius: parent.height*.4;
106 width: ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60))
107 height: parent.height
112 width: (35*parent.height)/107 +1
113 height: parent.height
114 anchors.left: parent.left
115 anchors.leftMargin: (parent.width - ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)))/2
116 source: "qrc:/button/buttonLeft.png"
122 width: (((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)) - ((70*parent.height)/107))+1
123 height: parent.height
124 anchors.horizontalCenter: parent.horizontalCenter
125 source: "qrc:/button/buttonCenter.png"
131 width: (35*parent.height)/107 +1
132 height: parent.height
133 anchors.right: parent.right
134 anchors.rightMargin: (parent.width - ((parent.width > buttonText.text.length*buttonText.font.pixelSize*.8) ? (parent.width) : (buttonText.text.length*buttonText.font.pixelSize*.60)))/2
135 source: "qrc:/button/buttonR.png"
140 name: "pressed"; when: mouseArea.pressed == true
141 PropertyChanges { target: shade; opacity: 0.4 }
142 PropertyChanges { target: image1; opacity: 0.5 }
143 PropertyChanges { target: image3; opacity: 0.5 }
144 PropertyChanges { target: image2; opacity: 0.5 }