summaryrefslogtreecommitdiffstats
path: root/application/InstanceProxyModel.h
blob: c063f5261d5e49d74872699f888e756b9286bb68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "groupview/GroupedProxyModel.h"

/**
 * A proxy model that is responsible for sorting instances into groups
 */
class InstanceProxyModel : public GroupedProxyModel
{
public:
	explicit InstanceProxyModel(QObject *parent = 0);
	QVariant data(const QModelIndex & index, int role) const override;

protected:
	virtual bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const override;
};