diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-05-31 10:48:07 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-05-31 10:48:07 +0200 |
commit | 48eb16af831e34a43b75c6fe8797a80a90499a9a (patch) | |
tree | 445144b31992db107c021fd505760d16a67bd7b3 | |
parent | 3c6668028efd6ee91a496b57f80ecbf77ea12e9e (diff) | |
download | kube-48eb16af831e34a43b75c6fe8797a80a90499a9a.tar.gz kube-48eb16af831e34a43b75c6fe8797a80a90499a9a.zip |
don't stretch icons
-rw-r--r-- | framework/qml/Icon.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/qml/Icon.qml b/framework/qml/Icon.qml index 74a4971a..6dc9529f 100644 --- a/framework/qml/Icon.qml +++ b/framework/qml/Icon.qml | |||
@@ -39,10 +39,11 @@ Item { | |||
39 | 39 | ||
40 | Image { | 40 | Image { |
41 | id: image | 41 | id: image |
42 | anchors.fill: parent | 42 | anchors.centerIn: parent |
43 | sourceSize.width: width | 43 | sourceSize.width: width |
44 | sourceSize.height: height | 44 | sourceSize.height: height |
45 | cache: true | 45 | cache: true |
46 | smooth: true | 46 | smooth: true |
47 | fillMode: Image.PreserveAspectFit | ||
47 | } | 48 | } |
48 | } | 49 | } |