Commit 871d6104 authored by Fushan Wen's avatar Fushan Wen 💬 Committed by Marco Martin
Browse files

shell/scripting: call `flushPendingConstraintsEvents` in `setLocation`

After location is set, one layout script will usually start adding widgets.
It's required to emit formFactorChanged() to update plasmoid.formFactor bindings
in QML side to avoid Layout issues.

See isHorizontal in plasma-desktop/containments/panel/contents/ui/main.qml
parent 0dbcba3d
Pipeline #190415 passed with stage
in 8 minutes and 51 seconds
......@@ -86,6 +86,15 @@ void Panel::setLocation(const QString &locationString)
c->setLocation(loc);
c->setFormFactor(ff);
/*
* After location is set, one layout script will usually start adding widgets.
* It's required to emit formFactorChanged() to update plasmoid.formFactor bindings
* in QML side to avoid Layout issues.
*
* @see isHorizontal in plasma-desktop/containments/panel/contents/ui/main.qml
*/
c->flushPendingConstraintsEvents();
}
PanelView *Panel::panel() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment