summaryrefslogtreecommitdiff
path: root/src/modelutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modelutils.h')
-rw-r--r--src/modelutils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modelutils.h b/src/modelutils.h
index f355c0d6..b5becb6c 100644
--- a/src/modelutils.h
+++ b/src/modelutils.h
@@ -4,6 +4,10 @@
#include <QAbstractItemView>
#include <QAbstractItemModel>
+// retrieve all the row index under the given parent
+QModelIndexList flatIndex(
+ const QAbstractItemModel* model, int column = 0, const QModelIndex& parent = QModelIndex());
+
// convert back-and-forth through model proxies
QModelIndex indexModelToView(const QModelIndex& index, const QAbstractItemView* view);
QModelIndexList indexModelToView(const QModelIndexList& index, const QAbstractItemView* view);