summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qheaderview.cpp
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-03-07 23:35:51 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-25 13:45:07 +0200
commit5c632708daf87c98649cf5b4f82013d70fe85679 (patch)
tree2c23e447f0f111feee43d839b2911a110aa973f7 /src/widgets/itemviews/qheaderview.cpp
parent3dffbe8c81c1c45aafcf3b9c3d3a9a40578e8fcf (diff)
Fix comments to refer to the root, not the top level.
Change-Id: If0fc8a18973a2fe15197437734f15f3d445d1b6c Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/itemviews/qheaderview.cpp')
-rw-r--r--src/widgets/itemviews/qheaderview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp
index dc272b5ee0..d8c53a3033 100644
--- a/src/widgets/itemviews/qheaderview.cpp
+++ b/src/widgets/itemviews/qheaderview.cpp
@@ -1707,7 +1707,7 @@ void QHeaderView::sectionsInserted(const QModelIndex &parent,
{
Q_D(QHeaderView);
if (parent != d->root)
- return; // we only handle changes in the top level
+ return; // we only handle changes in the root level
int oldCount = d->sectionCount();
d->invalidateCachedSizeHint();
@@ -1838,7 +1838,7 @@ void QHeaderViewPrivate::_q_sectionsRemoved(const QModelIndex &parent,
{
Q_Q(QHeaderView);
if (parent != root)
- return; // we only handle changes in the top level
+ return; // we only handle changes in the root level
if (qMin(logicalFirst, logicalLast) < 0
|| qMax(logicalLast, logicalFirst) >= sectionCount())
return;