summaryrefslogtreecommitdiffstats
path: root/torrentwidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-09-17 04:18:17 +0200
committerArno <arno@disconnect.de>2016-09-17 04:18:17 +0200
commit77c6343c4e8d5ac03c491cd30207d9294fbd817c (patch)
treed81316fa4ebbdae6afaf44c007ed8f33f79dc88a /torrentwidget.h
parent22d5bcbcb79dea84e7aab4e2032ae3638fbca581 (diff)
downloadShemovCleaner-77c6343c4e8d5ac03c491cd30207d9294fbd817c.tar.gz
ShemovCleaner-77c6343c4e8d5ac03c491cd30207d9294fbd817c.tar.bz2
ShemovCleaner-77c6343c4e8d5ac03c491cd30207d9294fbd817c.zip
Fix sorting in TorrentWidget
Sort files by DateTime instead of string comparison.
Diffstat (limited to 'torrentwidget.h')
-rw-r--r--torrentwidget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/torrentwidget.h b/torrentwidget.h
index 075e6c5..15992b3 100644
--- a/torrentwidget.h
+++ b/torrentwidget.h
@@ -20,7 +20,7 @@ class TorrentDisplay;
class TorrentWidget : public QWidget {
Q_OBJECT
public:
- enum CustomRoles { PresentRole = Qt::UserRole + 1, FullPathRole = Qt::UserRole + 2 };
+ enum CustomRoles { PresentRole = Qt::UserRole + 1, FullPathRole = Qt::UserRole + 2, CreatedRole = Qt::UserRole + 3 };
enum { ColumnCount = 3 };
enum Columns { IconColumn = 0, NameColumn = 1, CreatedColumn = 2 };
enum Present { NotPresent = 0, Present = 1 };