summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qheaderview.cpp
diff options
context:
space:
mode:
authorPeter Yard <peter.yard@nokia.com>2009-08-31 03:17:16 (GMT)
committerPeter Yard <peter.yard@nokia.com>2009-09-01 00:04:48 (GMT)
commitd1bb06923e825ac7079863d15d0d946d4c5aa19c (patch)
treea666c3e5a6a5ad88441b4a6b2d0b1da35ff4ba6c /src/gui/itemviews/qheaderview.cpp
parent8ff041dab354609b730849320f4f31659089b37e (diff)
downloadQt-d1bb06923e825ac7079863d15d0d946d4c5aa19c.zip
Qt-d1bb06923e825ac7079863d15d0d946d4c5aa19c.tar.gz
Qt-d1bb06923e825ac7079863d15d0d946d4c5aa19c.tar.bz2
Added description of visualIndex condition to docs for logicalIndex()
Fix for task: 214373
Diffstat (limited to 'src/gui/itemviews/qheaderview.cpp')
-rw-r--r--src/gui/itemviews/qheaderview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/itemviews/qheaderview.cpp b/src/gui/itemviews/qheaderview.cpp
index a1c3e4e..4dbd6dc 100644
--- a/src/gui/itemviews/qheaderview.cpp
+++ b/src/gui/itemviews/qheaderview.cpp
@@ -1047,7 +1047,9 @@ int QHeaderView::visualIndex(int logicalIndex) const
/*!
Returns the logicalIndex for the section at the given \a visualIndex
- position, or -1 otherwise.
+ position, or -1 if visualIndex < 0 or visualIndex >= QHeaderView::count().
+
+ Note that the visualIndex is not affected by hidden sections.
\sa visualIndex(), sectionPosition()
*/