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
This commit is contained in:
Marco Martin 2019-07-15 13:56:07 +02:00
parent 348c578bb9
commit 05daa3e206

View File

@ -739,6 +739,7 @@ void AppletQuickItem::setSwitchWidth(int width)
} }
d->switchWidth = width; d->switchWidth = width;
d->compactRepresentationCheck();
emit switchWidthChanged(width); emit switchWidthChanged(width);
} }
@ -754,6 +755,7 @@ void AppletQuickItem::setSwitchHeight(int height)
} }
d->switchHeight = height; d->switchHeight = height;
d->compactRepresentationCheck();
emit switchHeightChanged(height); emit switchHeightChanged(height);
} }