From 1257e1d3b264a2a358408b2bf8ad3814bdf7c1aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Arve=20S=C3=A6ther?= Date: Wed, 10 May 2023 10:23:52 +0200 Subject: Allow a layout with width or height == 0 to resize its child items Fixes: QTBUG-112740 Pick-to: 6.5 Change-Id: I66327f3fa76d3f1c14b62d0ac42d3fd4c28288b2 Reviewed-by: Mitch Curtis --- tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml b/tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml index 7f7352e25b..6961c643f0 100644 --- a/tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml +++ b/tests/auto/quick/qquicklayouts/data/tst_rowlayout.qml @@ -926,7 +926,17 @@ Item { }, layoutWidth: 28, expectedWidths: [22, 6] - } + },{ + tag: "resize_to_0_width", + layout: { + type: "RowLayout", + items: [ + {preferredWidth: 10, fillWidth: true}, + ] + }, + layoutWidth: 0, + expectedWidths: [0] + } ]; } -- cgit v1.2.1