From 8335bd7751656c72aa5457013a6b09dbec1a6405 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 16 Apr 2022 12:50:41 +0200 Subject: Show first file in TorrentWidget When a torrent file is parseable, show the first filename in the view. --- torrentwidget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'torrentwidget.h') diff --git a/torrentwidget.h b/torrentwidget.h index 004380c..4ba7cdc 100644 --- a/torrentwidget.h +++ b/torrentwidget.h @@ -20,8 +20,8 @@ class TorrentWidget : public QWidget { Q_OBJECT public: 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 { ColumnCount = 4 }; + enum Columns { IconColumn = 0, NameColumn = 1, ContentColumn = 2, CreatedColumn = 3 }; enum Present { NotPresent = 0, Present = 1 }; TorrentWidget(QWidget *parent = 0); QMenuBar *menuBar() { return mMenuBar; } -- cgit v1.2.3-70-g09d2