summaryrefslogtreecommitdiffstats
path: root/application/InstanceProxyModel.h
blob: fab6f834ab878d07023ad23d5a0790d66981e938 (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;
};