From 03f9ab0f9149050541d2852f94b508f746aac955 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 7 Aug 2017 16:07:42 +0200 Subject: [PATCH] [Battery Monitor] Fix icon size for InhibitionHint In QtQuick Layouts implicit size, which is taken from the SVG's preferred size, takes precedence potentially destroying the layout. Also, it should have been medium to be consistent with the rest. BUG: 383213 FIXED-IN: 5.8.8 --- applets/batterymonitor/package/contents/ui/InhibitionHint.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applets/batterymonitor/package/contents/ui/InhibitionHint.qml b/applets/batterymonitor/package/contents/ui/InhibitionHint.qml index 26abb2dc0..575714943 100755 --- a/applets/batterymonitor/package/contents/ui/InhibitionHint.qml +++ b/applets/batterymonitor/package/contents/ui/InhibitionHint.qml @@ -30,8 +30,8 @@ RowLayout { PlasmaCore.IconItem { id: iconItem - width: units.iconSizes.small - height: width + Layout.preferredWidth: units.iconSizes.medium + Layout.preferredHeight: units.iconSizes.medium visible: valid }