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

#include <QSortFilterProxyModel>

class GroupedProxyModel : public QSortFilterProxyModel
{
	Q_OBJECT

public:
	GroupedProxyModel(QObject *parent = 0);

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