summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-01-08 12:53:03 +0100
committerKai Uwe Broulik <[email protected]>2017-01-08 12:53:30 +0100
commit7b5dc988795cb88181e837e102e4a68b011445a5 (patch)
tree291af0b0221a27a30bbad5b5f6a5c09cfcd51d49
parent25a8343af280d9c657ea1ac42b4297b5d3d34454 (diff)
[Battery Monitor] Fix brightness item icon size
IconItem has an implicitWidth which takes precedence over "width" within a Layout. Explicitly use Layout.preferredWidth instead. (Same for height)
-rw-r--r--applets/batterymonitor/package/contents/ui/BrightnessItem.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/batterymonitor/package/contents/ui/BrightnessItem.qml b/applets/batterymonitor/package/contents/ui/BrightnessItem.qml
index 7982a89..e745ad3 100644
--- a/applets/batterymonitor/package/contents/ui/BrightnessItem.qml
+++ b/applets/batterymonitor/package/contents/ui/BrightnessItem.qml
@@ -35,8 +35,8 @@ RowLayout {
PlasmaCore.IconItem {
id: brightnessIcon
Layout.alignment: Qt.AlignTop
- width: units.iconSizes.medium
- height: width
+ Layout.preferredWidth: units.iconSizes.medium
+ Layout.preferredHeight: width
}
Column {