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