summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2017-03-28 09:42:51 (GMT)
committerKai Uwe Broulik <kde@privat.broulik.de>2017-03-28 09:42:51 (GMT)
commite28ea7a47c9669f232b05451e20d001ca61cd2c4 (patch)
tree977d37315eb492b3c3ccb36e09acbc15725c6b4e
parent0754179a134bb9be149cd7a932188722c0b8f66a (diff)
[Applet Alternatives] Fix icon size
Another regression with new IconItem implicit size handling. Unintuitively implicit size has precedence over regular size when placed in a Layout, since the latter is managed by it. Differential Revision: https://phabricator.kde.org/D5213
-rw-r--r--desktoppackage/contents/explorer/AppletAlternatives.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktoppackage/contents/explorer/AppletAlternatives.qml b/desktoppackage/contents/explorer/AppletAlternatives.qml
index 0385c58..9b0df72 100644
--- a/desktoppackage/contents/explorer/AppletAlternatives.qml
+++ b/desktoppackage/contents/explorer/AppletAlternatives.qml
@@ -134,8 +134,8 @@ PlasmaCore.Dialog {
width: parent.width - 2 * x
spacing: units.largeSpacing
PlasmaCore.IconItem {
- width: units.iconSizes.huge
- height: width
+ Layout.preferredWidth: units.iconSizes.huge
+ Layout.preferredHeight: units.iconSizes.huge
source: model.decoration
}