[PATCH] layouts: Always relayout on geometry changes in ToolBarLayout
authorArjen Hiemstra <ahiemstra@heimr.nl>
Mon, 7 Apr 2025 15:15:24 +0000 (17:15 +0200)
committerAurélien COUDERC <coucouf@debian.org>
Tue, 20 May 2025 06:38:42 +0000 (08:38 +0200)
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

index a4ef0826521c16f54399574392e7bf7ec3397731..dce591be3ac91e713dd185ee40cce2ada0f3bf2b 100644 (file)
@@ -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);
 }