summaryrefslogtreecommitdiffstats
path: root/src/widgets/itemviews/qtreeview.h
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2018-10-01 16:24:44 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-11-02 05:56:26 +0000
commitd84a7a812818065f97e015e50f66f6dad8c9a978 (patch)
tree3e68d24c1b6d1300f414cfbc1471b26edc287263 /src/widgets/itemviews/qtreeview.h
parenteafad93c3da9fae0e0445393a5a8d90348ae2e13 (diff)
QTreeView: add expandRecursively() to expand all items below an index
QTreeView only had functions to either expand all items or until a given depth. What was missing is to expand all subitems for an index programmatically which is added with this patch. [ChangeLog][QtWidgets][QTreeView] Added expandRecursively() to expand all items below a given index Fixes: QTBUG-10482 Change-Id: I8fc4d50b0b7e90245840c99a0188f13c0670253a Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/widgets/itemviews/qtreeview.h')
-rw-r--r--src/widgets/itemviews/qtreeview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/itemviews/qtreeview.h b/src/widgets/itemviews/qtreeview.h
index 33dbf1c1ce..ee65cf4265 100644
--- a/src/widgets/itemviews/qtreeview.h
+++ b/src/widgets/itemviews/qtreeview.h
@@ -160,6 +160,7 @@ public Q_SLOTS:
void resizeColumnToContents(int column);
void sortByColumn(int column);
void expandAll();
+ void expandRecursively(const QModelIndex &index, int depth = -1);
void collapseAll();
void expandToDepth(int depth);