diff options
Diffstat (limited to 'framework/qml/Icon.qml')
-rw-r--r-- | framework/qml/Icon.qml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/qml/Icon.qml b/framework/qml/Icon.qml index 6dc9529f..947e69ef 100644 --- a/framework/qml/Icon.qml +++ b/framework/qml/Icon.qml | |||
@@ -22,11 +22,9 @@ Item { | |||
22 | id: root | 22 | id: root |
23 | property string iconName | 23 | property string iconName |
24 | property url iconSource | 24 | property url iconSource |
25 | property alias implicitHeight: image.implicitHeight | ||
26 | property alias implicitWidth: image.implicitWidth | ||
27 | property alias status: image.status | 25 | property alias status: image.status |
28 | width: implicitWidth | 26 | property alias implicitWidth: image.implicitWidth |
29 | height: implicitHeight | 27 | property alias implicitHeight: image.implicitHeight |
30 | 28 | ||
31 | onIconNameChanged: setImageSource() | 29 | onIconNameChanged: setImageSource() |
32 | 30 | ||
@@ -39,7 +37,7 @@ Item { | |||
39 | 37 | ||
40 | Image { | 38 | Image { |
41 | id: image | 39 | id: image |
42 | anchors.centerIn: parent | 40 | anchors.fill: parent |
43 | sourceSize.width: width | 41 | sourceSize.width: width |
44 | sourceSize.height: height | 42 | sourceSize.height: height |
45 | cache: true | 43 | cache: true |