diff options
Diffstat (limited to 'src/widgets/itemviews/qheaderview.cpp')
-rw-r--r-- | src/widgets/itemviews/qheaderview.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp index 1131ef030e..75a513fb67 100644 --- a/src/widgets/itemviews/qheaderview.cpp +++ b/src/widgets/itemviews/qheaderview.cpp @@ -1337,18 +1337,13 @@ QHeaderView::ResizeMode QHeaderView::sectionResizeMode(int logicalIndex) const and QTreeView::sizeHintForColumn(). Reimplementing these functions can make this function not having an effect. - If \a resizeSectionsNow is set to true (default) it will do adjustment of sections by calling - resizeSections(). (regardless if the precision was changed). - \sa resizeContentsPrecision(), setSectionResizeMode(), resizeSections(), QTableView::sizeHintForColumn(), QTableView::sizeHintForRow(), QTreeView::sizeHintForColumn() */ -void QHeaderView::setResizeContentsPrecision(int precision, bool resizeSectionsNow) +void QHeaderView::setResizeContentsPrecision(int precision) { Q_D(QHeaderView); d->resizeContentsPrecision = precision; - if (resizeSectionsNow) - resizeSections(); } /*! @@ -1604,7 +1599,7 @@ int QHeaderView::minimumSectionSize() const void QHeaderView::setMinimumSectionSize(int size) { Q_D(QHeaderView); - if (size < 0 || size > maxSizeSection) + if (size < -1 || size > maxSizeSection) return; d->minimumSectionSize = size; if (d->minimumSectionSize > maximumSectionSize()) |