2015-10-11 23:26:31 +05:30
|
|
|
#pragma once
|
|
|
|
|
2015-02-01 16:14:47 +05:30
|
|
|
#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);
|
2016-04-10 07:59:29 +05:30
|
|
|
QVariant data(const QModelIndex & index, int role) const override;
|
2015-02-01 16:14:47 +05:30
|
|
|
|
|
|
|
protected:
|
2016-04-10 07:59:29 +05:30
|
|
|
virtual bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const override;
|
2015-02-01 16:14:47 +05:30
|
|
|
};
|