summaryrefslogtreecommitdiff
path: root/src/modelutils.h
blob: f355c0d67737436516a219200215697081a80c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef MODELUTILS_H
#define MODELUTILS_H

#include <QAbstractItemView>
#include <QAbstractItemModel>

// convert back-and-forth through model proxies
QModelIndex indexModelToView(const QModelIndex& 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);


#endif