summaryrefslogtreecommitdiff
path: root/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.5-devicenotifier.patch
blob: 978f326e620f7b4f5673c9d24232815ad75dce85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From b8f263cd9939530a6634a1ddb9533bf473a67805 Mon Sep 17 00:00:00 2001
From: Kai Uwe Broulik <kde@privat.broulik.de>
Date: Wed, 23 Aug 2017 11:10:34 +0200
Subject: [Device Notifier] Set preferred size for ActionItem

In QtQuick Layouts implicit size (set by IconItem to the SVG's natural size) takes
precedence over width/height. This was fixed in DeviceItem but forgotten here.

BUG: 382541
FIXED-IN: 5.8.8
---
 applets/devicenotifier/package/contents/ui/ActionItem.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/applets/devicenotifier/package/contents/ui/ActionItem.qml b/applets/devicenotifier/package/contents/ui/ActionItem.qml
index 5e54866..df28365 100644
--- a/applets/devicenotifier/package/contents/ui/ActionItem.qml
+++ b/applets/devicenotifier/package/contents/ui/ActionItem.qml
@@ -56,8 +56,8 @@ MouseArea {
 
         PlasmaCore.IconItem {
             source: area.icon
-            width: units.iconSizes.smallMedium
-            height: width
+            Layout.preferredWidth: units.iconSizes.smallMedium
+            Layout.preferredHeight: width
         }
 
         PlasmaComponents.Label {
-- 
cgit v0.11.2