From adaa50e37da1fddada874a289792a1bd95c5aebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Martsum?= Date: Tue, 16 Apr 2013 09:07:44 +0200 Subject: QHeaderView - add parameter to control sizeHint precision Currently Qt looks at 1000 rows when scaling a column. That can be slow in some situations and too inaccurate in others. With this patch we leave it up to the user to decide how precise e.g resizeToContents should be. Change-Id: I6ef60f9a3bb40fc331ce1a1544fdc77488d20ca3 Reviewed-by: Stephen Kelly --- dist/changes-5.2.0 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0 index 59ea4f9985..4e7a2f397c 100644 --- a/dist/changes-5.2.0 +++ b/dist/changes-5.2.0 @@ -25,3 +25,7 @@ QtWidgets - QAbstractScrollArea now has a SizeAdjustPolicy. If it is set to AdjustToContents it will make use of the new protected viewportSizeHint() (binary compatible since it was reserved in Qt5). This function returns a suggested size based on contents. + +- [QTBUG-4206] QTableView resizeToContents will now adjust to actual contents + and not just visible area. QHeaderView::setAutoResizePrecision() has been + introduced to control how precise the autoResize should be. -- cgit v1.2.3