diff options
author | Thorbjørn Lund Martsum <tmartsum@gmail.com> | 2012-03-11 10:52:25 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-14 11:37:18 +0100 |
commit | 39e0d35fe9acb2b2b539cc96170be2d227936b74 (patch) | |
tree | d8e6252c00ec78ebbd4577f72c489e84310d5bc2 /src/widgets/itemviews | |
parent | fae4a2555a9402e8cecf67242b29dca624cc61e8 (diff) |
QHeaderView - documentation update. Prefer hideSection over 0-resize.
There is a different behavior on 0 sections and hidden sections
e.g with scrollbars. Normally people want to use hideSection.
Change-Id: Id99de30ea46906bb4ef7720ed12d4ac9615c9743
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/itemviews')
-rw-r--r-- | src/widgets/itemviews/qheaderview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp index 766d7ce6b6..425eb4cd95 100644 --- a/src/widgets/itemviews/qheaderview.cpp +++ b/src/widgets/itemviews/qheaderview.cpp @@ -866,9 +866,11 @@ void QHeaderView::swapSections(int first, int second) \fn void QHeaderView::resizeSection(int logicalIndex, int size) Resizes the section specified by \a logicalIndex to \a size measured in - pixels. + pixels. The size parameter must be a value larger or equal to zero. A + size equal to zero is however not recommended. In that situation hideSection + should be used instead. - \sa sectionResized(), resizeMode(), sectionSize() + \sa sectionResized(), resizeMode(), sectionSize(), hideSection() */ void QHeaderView::resizeSection(int logical, int size) |