summaryrefslogtreecommitdiffstats
path: root/CategorizedProxyModel.h
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2013-12-24 11:47:30 +0100
committerJan Dalheimer <jan@dalheimer.de>2013-12-24 11:47:30 +0100
commitccbf341dc8d8e515d9cf918bff7ff9435c477847 (patch)
tree7ca5071ba6dcc52dd6e77e265ece4afafcac58f7 /CategorizedProxyModel.h
downloadMultiMC-ccbf341dc8d8e515d9cf918bff7ff9435c477847.tar
MultiMC-ccbf341dc8d8e515d9cf918bff7ff9435c477847.tar.gz
MultiMC-ccbf341dc8d8e515d9cf918bff7ff9435c477847.tar.lz
MultiMC-ccbf341dc8d8e515d9cf918bff7ff9435c477847.tar.xz
MultiMC-ccbf341dc8d8e515d9cf918bff7ff9435c477847.zip
Initial commit. Basics work. Next: Drag and Drop
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