small change
[mdictionary] / src / mdictionary / qml / Button.qml
index 0491e99..831e007 100644 (file)
@@ -7,6 +7,7 @@ BorderImage {
     opacity: 1
 
     function setText(string) { textInButton = qsTr(string); }
+    function press() { mouseArea.pressed }
     border { left: 10; top: 10; right: 10; bottom: 10 }
 
     MouseArea {
@@ -24,6 +25,7 @@ BorderImage {
         id: buttonText
         anchors.centerIn: parent;
         font.pixelSize: parent.height * .5
+        elide: Text.ElideRight;
         style: Text.Sunken; color: "white"; styleColor: "black"; smooth: true
     }
 
@@ -33,15 +35,18 @@ BorderImage {
         height: parent.height
         anchors.left: parent.left
         source: "qrc:/button/buttonLeft.png"
+        smooth: true
         fillMode:Image.Stretch
     }
 
     Image {
         id: image3
         smooth: true
-        width: parent.width - ((70*parent.height)/107) +1;
         height: parent.height
-        anchors.horizontalCenter: parent.horizontalCenter
+        anchors.right: image2.left
+        anchors.rightMargin: -1
+        anchors.left: image1.right
+        anchors.leftMargin: -1
         source: "qrc:/button/buttonCenter.png"
         fillMode:Image.Stretch
     }