From 05daa3e2064ae6af6e2f1f283ba5a6a93a49d1a5 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 15 Jul 2019 13:56:07 +0200 Subject: [PATCH] react when switchWidth/Height changes if switchWidth or height changes dinamically, compactRepresentationCheck has to be ran again, otherwise it can happen the situation where applets have both rapresentations in the same view --- src/plasmaquick/appletquickitem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plasmaquick/appletquickitem.cpp b/src/plasmaquick/appletquickitem.cpp index 9d6e511db..c49686a4d 100644 --- a/src/plasmaquick/appletquickitem.cpp +++ b/src/plasmaquick/appletquickitem.cpp @@ -739,6 +739,7 @@ void AppletQuickItem::setSwitchWidth(int width) } d->switchWidth = width; + d->compactRepresentationCheck(); emit switchWidthChanged(width); } @@ -754,6 +755,7 @@ void AppletQuickItem::setSwitchHeight(int height) } d->switchHeight = height; + d->compactRepresentationCheck(); emit switchHeightChanged(height); }