summaryrefslogtreecommitdiffstats
path: root/GroupedProxyModel.h
diff options
context:
space:
mode:
Diffstat (limited to 'GroupedProxyModel.h')
-rw-r--r--GroupedProxyModel.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/GroupedProxyModel.h b/GroupedProxyModel.h
new file mode 100644
index 00000000..cae87ecd
--- /dev/null
+++ b/GroupedProxyModel.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <QSortFilterProxyModel>
+
+class GroupedProxyModel : public QSortFilterProxyModel
+{
+ Q_OBJECT
+
+public:
+ GroupedProxyModel(QObject *parent = 0);
+
+protected:
+ bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
+};