summaryrefslogtreecommitdiffstats
path: root/filesorter.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-08-16 18:49:59 +0200
committerArno <arno@disconnect.de>2016-08-16 18:49:59 +0200
commita5191b5d12791981d16da3b4154b7fb29f1c01db (patch)
tree56d5534fcc9b1c88e74a1e0c35ca8fc0408435f9 /filesorter.h
parent52a3097986a6e69f57261d74c8807acbe9374c37 (diff)
downloadShemovCleaner-a5191b5d12791981d16da3b4154b7fb29f1c01db.tar.gz
ShemovCleaner-a5191b5d12791981d16da3b4154b7fb29f1c01db.tar.bz2
ShemovCleaner-a5191b5d12791981d16da3b4154b7fb29f1c01db.zip
Implement delete files
Thought I did an initial commit, but seems git thinks otherwise...
Diffstat (limited to 'filesorter.h')
-rw-r--r--filesorter.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/filesorter.h b/filesorter.h
index 957252d..92bc71e 100644
--- a/filesorter.h
+++ b/filesorter.h
@@ -1,11 +1,16 @@
#ifndef FILESORTER_H
#define FILESORTER_H
+#include <QSortFilterProxyModel>
+
+class FileSorter : public QSortFilterProxyModel {
+ Q_OBJECT
+ public:
+ explicit FileSorter(QObject *parent = 0);
+
+ protected:
+ virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const;
-class FileSorter
-{
-public:
- FileSorter();
};
-#endif // FILESORTER_H \ No newline at end of file
+#endif // FILESORTER_H