From d13f6bb870cdda71257f665367be8ef9fca86255 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 17 May 2022 11:47:01 +0200 Subject: Apply clang-format. --- src/modelutils.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/modelutils.h') 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 #include +#include #include -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 -- cgit v1.3.1