summaryrefslogtreecommitdiffstats
path: root/application/groupview/GroupedProxyModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'application/groupview/GroupedProxyModel.h')
-rw-r--r--application/groupview/GroupedProxyModel.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/application/groupview/GroupedProxyModel.h b/application/groupview/GroupedProxyModel.h
new file mode 100644
index 00000000..12edee0f
--- /dev/null
+++ b/application/groupview/GroupedProxyModel.h
@@ -0,0 +1,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;
+};