summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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