summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2014-09-17 10:00:14 +0200
committerMitch Curtis <mitch.curtis@digia.com>2014-09-18 07:11:17 +0200
commit8eb3d724a92b8eeb1e96362bd6997fcee178af89 (patch)
tree1f57140ddca15c4e8b4356f1c2f3c92589dbd0c0
parent9b556afc5a2507077dff54c18a2b19c7df3c4575 (diff)
Improve documentation regarding moving item view columns.
The only way I was able to find information on this was through bug reports. Change-Id: Iac59a82fab9c216495860ad3b1efad1125130002 Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
-rw-r--r--src/widgets/itemviews/qheaderview.cpp3
-rw-r--r--src/widgets/itemviews/qtreeview.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp
index 27b85c678e..208ff34695 100644
--- a/src/widgets/itemviews/qheaderview.cpp
+++ b/src/widgets/itemviews/qheaderview.cpp
@@ -1087,6 +1087,9 @@ int QHeaderView::logicalIndex(int visualIndex) const
If \a movable is true, the header may be moved by the user; otherwise it
is fixed in place.
+ By default, all sections are movable except the first, which always stays
+ fixed.
+
\sa sectionsMovable(), sectionMoved()
*/
diff --git a/src/widgets/itemviews/qtreeview.cpp b/src/widgets/itemviews/qtreeview.cpp
index ae3994e30a..f1aaeff13f 100644
--- a/src/widgets/itemviews/qtreeview.cpp
+++ b/src/widgets/itemviews/qtreeview.cpp
@@ -109,6 +109,10 @@ QT_BEGIN_NAMESPACE
its header. If this value is set to true, this property will override the
resize mode set on the last section in the header.
+ By default, all columns in a tree view are movable except the first. To
+ disable movement of these columns, use QHeaderView's
+ \l {QHeaderView::}{setSectionsMovable()} function. For more information
+ about rearranging sections, see \l {Moving Header Sections}.
\section1 Key Bindings