small change
[mdictionary] / src / mdictionary / qml / IconButton.qml
index 19d3d70..9be44f1 100644 (file)
@@ -4,10 +4,12 @@ Rectangle {
     id: rectangle
 
     property alias pathToIcon: image.source;
-    property int iconWidth:rectangle.width;
-    property int iconHeight:rectangle.height;
+    property int iconWidth:rectangle.width-8;
+    property int iconHeight:rectangle.height-8;
 
     signal clicked;
+    function press() { mouseArea.pressed }
+
     radius: 50
 
     MouseArea {