qt5base-lts/tests/auto/widgets/kernel
Volker Hilsheimer c3a5fe2fd7 QFormLayout: don't access out-of-bounds layout data
When rows are hidden (implicitly or explicitly), then their layout data
does not get fully updated. If rows get hidden after the layout data has
been calculated once, then we must make sure that their indices are
reset. Otherwise we might access array indices that are out of bounds
when the layout data structure gets resized to fit only visible rows.

For good measure, skip entirely over hidden rows when accessing the
layout data when arranging the widget.

Fixes: QTBUG-109237
Pick-to: 6.5 6.4
Change-Id: I4d6943b6a110edb61f60ce78d31f0fc64b5cc03d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2023-01-13 14:38:16 +01:00
..
qaction Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qactiongroup Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qapplication Don't use native dialogs for tst_QApplication::closeAllWindows() 2023-01-02 23:12:30 +01:00
qboxlayout Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qformlayout QFormLayout: don't access out-of-bounds layout data 2023-01-13 14:38:16 +01:00
qgesturerecognizer Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qgridlayout Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qlayout Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qshortcut Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qsizepolicy Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qstackedlayout Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtooltip Deprecate QApplication::setActiveWindow() and mark as internal 2022-08-27 20:22:29 +02:00
qwidget Skip tst_QWidget::optimizedResizeMove and ..._topLevel on wayland 2023-01-03 19:21:39 +00:00
qwidget_window Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qwidgetaction Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qwidgetmetatype Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qwidgetrepaintmanager Revert "Fix tst_QWidgetRepaintManager on XCB" 2023-01-10 23:03:30 +00:00
qwidgetsvariant Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
qwindowcontainer Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00