From 937b23e04a3763bc31f2ea948edac0d7121f0e8b Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 7 Apr 2025 17:15:24 +0200 Subject: [PATCH] [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 --- src/layouts/toolbarlayout.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } -- 2.30.2