qt5base-lts/tests/auto/widgets
Volker Hilsheimer 9eca8d62fa Fix memory leak and clean up splitter test
Allocate the QSplitter on the stack so that it and its child widgets are
cleaned up when the test function finishes.

As a drive-by, replace QString usage with QByteArray to avoid unneeded
conversion from and to latin1, and modernize list construction and for loop.

Pick-to: 6.4 6.2
Change-Id: I2e29961edbab1ec88be356fca6bc100f08894e82
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2022-10-14 16:34:47 +02:00
..
dialogs tests: skip tst_QDialog::showAsTool() on Wayland 2022-10-07 13:20:13 +02:00
effects Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
graphicsview Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
itemviews Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
kernel Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
styles Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
util Deprecate QApplication::setActiveWindow() and mark as internal 2022-08-27 20:22:29 +02:00
widgets Fix memory leak and clean up splitter test 2022-10-14 16:34:47 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00