diff options
author | Arno <arno@disconnect.de> | 2018-03-31 19:32:57 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-03-31 19:32:57 +0200 |
commit | 3dd5dbd7d66a21b8dd8bded05636252d7ef84cba (patch) | |
tree | 3ccc57044fc84cc63a750f50c5f837933ef76f57 /fsproxy.h | |
parent | d4dae4ba8633ff8c58bbb4135850ddbd1dfa87a9 (diff) | |
download | SheMov-3dd5dbd7d66a21b8dd8bded05636252d7ef84cba.tar.gz SheMov-3dd5dbd7d66a21b8dd8bded05636252d7ef84cba.tar.bz2 SheMov-3dd5dbd7d66a21b8dd8bded05636252d7ef84cba.zip |
More sorting for FSWidget
Sort size and duration by their actual numbers instead of alphabetically
by the display string.
Diffstat (limited to 'fsproxy.h')
-rw-r--r-- | fsproxy.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fsproxy.h b/fsproxy.h new file mode 100644 index 0000000..2164307 --- /dev/null +++ b/fsproxy.h @@ -0,0 +1,15 @@ +#ifndef FSPROXY_H +#define FSPROXY_H + +#include <QSortFilterProxyModel> + +class FSProxy : public QSortFilterProxyModel { + Q_OBJECT + public: + explicit FSProxy(QObject *parent = nullptr); + + protected: + virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const; +}; + +#endif // FSPROXY_H |