summaryrefslogtreecommitdiffstats
path: root/GroupedProxyModel.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-01-31 22:51:45 +0100
committerPetr Mrázek <peterix@gmail.com>2014-01-31 22:51:45 +0100
commit3fb7a0faf069fdc5a4f14a12dfd76c43819c3378 (patch)
treee2379ae9619152fd9e378ad9ee64256a5d5d6647 /GroupedProxyModel.h
parentc47933d95cae407a99acfbbb941655f7cd52e1ae (diff)
downloadMultiMC-3fb7a0faf069fdc5a4f14a12dfd76c43819c3378.tar
MultiMC-3fb7a0faf069fdc5a4f14a12dfd76c43819c3378.tar.gz
MultiMC-3fb7a0faf069fdc5a4f14a12dfd76c43819c3378.tar.lz
MultiMC-3fb7a0faf069fdc5a4f14a12dfd76c43819c3378.tar.xz
MultiMC-3fb7a0faf069fdc5a4f14a12dfd76c43819c3378.zip
Reformat, Rename, Redo
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;
+};