From 77c6343c4e8d5ac03c491cd30207d9294fbd817c Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 17 Sep 2016 04:18:17 +0200 Subject: Fix sorting in TorrentWidget Sort files by DateTime instead of string comparison. --- torrentwidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'torrentwidget.h') 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 }; -- cgit v1.2.3-70-g09d2