qt6-bb10/tests/auto/widgets
Christian Ehrlicher f70803eefb QBoxLayout: don't crash on passing invalid index
Passing an invalid index gives an assertion in debug mode and crashes in
release mode due to an out-of-bounds access. Fix it by appending the
given widget (same as passing a negative index which is documented).

Pick-to: 6.5 6.2
Fixes: QTBUG-130275
Change-Id: Id0c245e185acc36e5d07cea1d22619bb0e9eee07
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
(cherry picked from commit 0f9062ec71021c256dba7ee8498f036d7aac0821)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 3c0f08ab7064d2c4183844613f08b3630f180fef)
2024-12-19 05:16:38 +00:00
..
dialogs Cocoa: Use sheetParent to close sheet instead of transientParent 2024-11-04 17:48:56 +00:00
effects Change license for tests files 2024-02-04 09:56:42 +01:00
graphicsview Tests: Reduce the number of module includes 2024-11-04 19:42:27 +00:00
itemviews QHeaderView: update the view correctly in resetDefaultSectionSize 2024-11-01 23:53:56 +01:00
kernel QBoxLayout: don't crash on passing invalid index 2024-12-19 05:16:38 +00:00
styles QStyleSheetStyle: Fix resetting fonts for subwidgets 2024-12-17 23:57:37 +00:00
util Tests: Reduce the number of module includes 2024-11-04 19:42:27 +00:00
widgets QToolBar: Update implicit icon size if style changes 2024-12-16 15:07:19 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00