small change
[mdictionary] / src / mdictionary / qml / Button.qml
index d10edc6..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
     }