qt5base-lts/tests/auto/widgets/itemviews
Christian Ehrlicher 3e59a88e89 QAbstractScrollArea: fix sizeHint when widget is not visible
QTable/QTreeView did not follow the documentation and returned
their needed size with scrollbars within viewportSizeHint().
Then sizeHint() also took the size of the scrollbars into account
when the policy was set to ScrollBarAlwaysOn.
This lead to different results when the widget was shown/hidden and/or
the scrollbar was visible or not.
Fix it by only adding the additional size when the scrollbars are
really visible. Also use header->isHidden() instead of isVisible() in
QTreeView the same way it is done in QTableView.

[ChangeLog][QtWidgets][QAbstractScrollArea] QTableView/QTreeView are
now reporting their viewportSizeHint() correctly taking into account
its scroll bars visibility and visibilityPolicy.

Task-number: QTBUG-69120
Change-Id: If50959a9f7429275e3e33122644c978fb64972ba
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2018-10-04 09:48:40 +00:00
..
qabstractitemview winrt: Implement QPlatformCursor::setPos 2018-08-06 05:24:35 +00:00
qcolumnview winrt: Make itemview auto tests pass 2018-06-22 05:02:44 +00:00
qdatawidgetmapper tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdirmodel winrt: Make itemview auto tests pass 2018-06-22 05:02:44 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview Blacklist flaky tst_qheaderview test 2018-09-24 21:12:52 +00:00
qitemdelegate Merge remote-tracking branch 'origin/5.12' into dev 2018-09-13 01:00:39 +02:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview Autotests/QItemView: re-enable tst_QItemView::indexAt() 2018-09-09 12:04:15 +00:00
qlistview QListView: Speedup handling of hidden items 2018-09-17 14:01:31 +00:00
qlistwidget Implement QListModel::moveRows 2018-09-06 09:26:58 +00:00
qtableview QTableView: Fix PageUp not getting to top when first row is hidden 2018-09-09 12:03:55 +00:00
qtablewidget QAbstractScrollArea: fix sizeHint when widget is not visible 2018-10-04 09:48:40 +00:00
qtreeview QTreeView: sync keyboard search behavior with other itemviews 2018-09-25 14:23:06 +00:00
qtreewidget QAbstractScrollArea: fix sizeHint when widget is not visible 2018-10-04 09:48:40 +00:00
qtreewidgetitemiterator tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
itemviews.pro Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00