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:
parent
348c578bb9
commit
05daa3e206
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user