summaryrefslogtreecommitdiff
path: root/src/modelutils.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2023-07-09 17:36:03 +0200
committerGitHub <noreply@github.com>2023-07-09 17:36:03 +0200
commitef94aee28464039672b277243a0181ae93550d6c (patch)
tree0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/modelutils.h
parent7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff)
parent3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff)
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
Diffstat (limited to 'src/modelutils.h')
-rw-r--r--src/modelutils.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/modelutils.h b/src/modelutils.h
index e6510941..f2faeff7 100644
--- a/src/modelutils.h
+++ b/src/modelutils.h
@@ -1,25 +1,28 @@
#ifndef MODELUTILS_H
#define MODELUTILS_H
-#include <QAbstractItemView>
#include <QAbstractItemModel>
+#include <QAbstractItemView>
#include <QColor>
-namespace MOShared {
+namespace MOShared
+{
// retrieve all the row index under the given parent
-QModelIndexList flatIndex(
- const QAbstractItemModel* model, int column = 0, const QModelIndex& parent = QModelIndex());
+QModelIndexList flatIndex(const QAbstractItemModel* model, int column = 0,
+ const QModelIndex& parent = QModelIndex());
// retrieve all the visible index in the given view
QModelIndexList visibleIndex(QTreeView* view, int column = 0);
// convert back-and-forth through model proxies
QModelIndex indexModelToView(const QModelIndex& index, const QAbstractItemView* view);
-QModelIndexList indexModelToView(const QModelIndexList& index, const QAbstractItemView* view);
+QModelIndexList indexModelToView(const QModelIndexList& index,
+ const QAbstractItemView* view);
QModelIndex indexViewToModel(const QModelIndex& index, const QAbstractItemModel* model);
-QModelIndexList indexViewToModel(const QModelIndexList& index, const QAbstractItemModel* model);
+QModelIndexList indexViewToModel(const QModelIndexList& index,
+ const QAbstractItemModel* model);
-}
+} // namespace MOShared
#endif