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