From: Arjen Hiemstra Date: Mon, 7 Apr 2025 15:15:24 +0000 (+0200) Subject: [PATCH] layouts: Always relayout on geometry changes in ToolBarLayout X-Git-Tag: archive/raspbian/6.13.0-2+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=937b23e04a3763bc31f2ea948edac0d7121f0e8b;p=kf6-kirigami.git [PATCH] layouts: Always relayout on geometry changes in ToolBarLayout Otherwise we end up with several corner cases where the implicit width is the same as width but we still have actions hidden. Gbp-Pq: Name upstream_e3c6af3b_layouts-Always-relayout-on-geometry-changes-in-ToolBarLayout.patch --- diff --git a/src/layouts/toolbarlayout.cpp b/src/layouts/toolbarlayout.cpp index a4ef082..dce591b 100644 --- a/src/layouts/toolbarlayout.cpp +++ b/src/layouts/toolbarlayout.cpp @@ -348,11 +348,7 @@ void ToolBarLayout::componentComplete() void ToolBarLayout::geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) { if (newGeometry != oldGeometry) { - if (newGeometry.size() != QSizeF{implicitWidth(), implicitHeight()}) { - relayout(); - } else { - polish(); - } + relayout(); } QQuickItem::geometryChange(newGeometry, oldGeometry); }