summaryrefslogtreecommitdiffstats
path: root/torrentwidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-09-05 04:38:59 +0200
committerArno <arno@disconnect.de>2016-09-05 04:38:59 +0200
commit821b07a3187b9a11b5d5678f0c3ad2f28689f9e8 (patch)
treeb024668b72445ff6cddad827c119fafb9f41a19a /torrentwidget.h
parent3a6e43400ff1c36269d6b7cb822b3ffe6ff58fb7 (diff)
downloadShemovCleaner-821b07a3187b9a11b5d5678f0c3ad2f28689f9e8.tar.gz
ShemovCleaner-821b07a3187b9a11b5d5678f0c3ad2f28689f9e8.tar.bz2
ShemovCleaner-821b07a3187b9a11b5d5678f0c3ad2f28689f9e8.zip
Use enums in TorrentWidget
Revamp gatherData() to use Enums for colums, roles and data.
Diffstat (limited to 'torrentwidget.h')
-rw-r--r--torrentwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/torrentwidget.h b/torrentwidget.h
index 4a354ce..aa3d977 100644
--- a/torrentwidget.h
+++ b/torrentwidget.h
@@ -20,6 +20,10 @@ class TorrentDisplay;
class TorrentWidget : public QWidget {
Q_OBJECT
public:
+ enum CustomRoles { PresentRole = Qt::UserRole + 1, FullPathRole = Qt::UserRole + 2 };
+ enum { ColumnCount = 3 };
+ enum Columns { IconColumn = 0, NameColumn = 1, CreatedColumn = 2 };
+ enum Present { NotPresent = 0, Present = 1 };
TorrentWidget(QWidget *parent = 0);
QToolBar *toolBar() { return mToolBar; }
QMenuBar *menuBar() { return mMenuBar; }