table view
[mdictionary] / src / mdictionary / qml / IconButton.qml
index 7fc32ea..19d3d70 100644 (file)
@@ -4,6 +4,8 @@ Rectangle {
     id: rectangle
 
     property alias pathToIcon: image.source;
+    property int iconWidth:rectangle.width;
+    property int iconHeight:rectangle.height;
 
     signal clicked;
     radius: 50
@@ -21,9 +23,10 @@ Rectangle {
     Image {
         id: image
         z:4;
+        smooth: true
         anchors.centerIn: parent
-        width: rectangle.width;
-        height: rectangle.height;
+        width: iconWidth;
+        height: iconHeight;
     }
 
     Image {
@@ -40,9 +43,11 @@ Rectangle {
         id: image3
         z: 1
         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"
 
     }