diff src/gui/pages/torrents.cc @ 250:c130f47f6f48

*: many many changes e.g. the search page is actually implemented now!
author Paper <paper@paper.us.eu.org>
date Sun, 04 Feb 2024 21:17:17 -0500
parents 4d461ef7d424
children 862d0d8619f6
line wrap: on
line diff
--- a/src/gui/pages/torrents.cc	Wed Jan 24 20:18:59 2024 -0500
+++ b/src/gui/pages/torrents.cc	Sun Feb 04 21:17:17 2024 -0500
@@ -6,10 +6,10 @@
 #include "gui/widgets/text.h"
 #include "track/media.h"
 
+#include <QHeaderView>
 #include <QVBoxLayout>
 #include <QToolBar>
 #include <QTreeView>
-#include <QMainWindow>
 #include <QByteArray>
 #include <QDataStream>
 #include <QThread>
@@ -24,10 +24,11 @@
 #include "anitomy/anitomy.h"
 
 /* This file is very, very similar to the anime list page.
-
-   It differs from Taiga in that it uses tabs instead of
-   those "groups", but those are custom painted and a pain in the ass to
-   maintain over multiple platforms. */
+ *
+ * It differs from Taiga in that it uses tabs instead of
+ * those "groups", but those are custom painted and a pain in the ass to
+ * maintain over multiple platforms.
+*/
 
 TorrentsPageListSortFilter::TorrentsPageListSortFilter(QObject* parent) : QSortFilterProxyModel(parent) {
 }
@@ -398,6 +399,8 @@
 		treeview->setColumnWidth(TorrentsPageListModel::TL_FILENAME,    200);
 		treeview->setColumnWidth(TorrentsPageListModel::TL_RELEASEDATE, 190);
 
+		treeview->header()->setStretchLastSection(false);
+
 		layout->addWidget(treeview);
 	}
 }