qt6-bb10/tests/auto/widgets
Thorbjørn Lund Martsum 7502598ef5 QListView: fix AdjustToContents (sizeAdjustPolicy)
Unlike an acceptable effect in QTableView + QTreeView
setAdjustPolicy(QAbstractScrollArea::AdjustToContents)
unfortunately didn't work for QListViews (and QListWidget).

This patch corrects QListViews AdjustToContents
behavior.

[ChangeLog][QtWidgets][QListView] A more correct implementation
of QListView::viewportSizeHint has been made. That
implies that setting the sizeAdjustPolicy to AdjustToContent
on QListView and QListWidget will now cause the view to
size after the contents and avoid scrollbars.

Pick-to: 6.2
Task-number: QTBUG-58749
Change-Id: I1675115f2348e2fcf0b2c39b451ef337e10eb872
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2021-08-10 12:00:13 +02:00
..
dialogs testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
effects Fix tst_qgraphicseffect on Wayland 2021-03-11 08:04:21 +01:00
graphicsview testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
itemviews QListView: fix AdjustToContents (sizeAdjustPolicy) 2021-08-10 12:00:13 +02:00
kernel QWidget: cope with QObject::connect()'s incomplete SFINAE-friendliness 2021-07-24 00:33:09 +02:00
styles Support pt units for sizes, as documented 2021-07-20 13:20:23 +02:00
util Fix auto completion in QFileDialog on Windows 2021-07-09 00:48:44 +02:00
widgets testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00