2015-10-11 18:56:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
2015-02-01 10:44:47 +00:00
|
|
|
#include "groupview/GroupedProxyModel.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A proxy model that is responsible for sorting instances into groups
|
|
|
|
*/
|
|
|
|
class InstanceProxyModel : public GroupedProxyModel
|
|
|
|
{
|
|
|
|
public:
|
2018-07-15 13:51:05 +01:00
|
|
|
explicit InstanceProxyModel(QObject *parent = 0);
|
|
|
|
QVariant data(const QModelIndex & index, int role) const override;
|
2015-02-01 10:44:47 +00:00
|
|
|
|
|
|
|
protected:
|
2018-07-15 13:51:05 +01:00
|
|
|
virtual bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const override;
|
2015-02-01 10:44:47 +00:00
|
|
|
};
|