diff src/gui/pages/anime_list.cc @ 236:4d461ef7d424

HUGE UPDATE: convert build system to autotools why? because cmake sucks :)
author Paper <mrpapersonic@gmail.com>
date Fri, 19 Jan 2024 00:24:02 -0500
parents ff0061e75f0f
children c130f47f6f48
line wrap: on
line diff
--- a/src/gui/pages/anime_list.cc	Tue Jan 16 15:22:29 2024 -0500
+++ b/src/gui/pages/anime_list.cc	Fri Jan 19 00:24:02 2024 -0500
@@ -455,8 +455,21 @@
 		sort_models[i]->setSortRole(Qt::UserRole);
 		sort_models[i]->setSortCaseSensitivity(Qt::CaseInsensitive);
 	}
+
 	tree_view->setModel(sort_models[0]);
 
+	/* Set column widths */
+	tree_view->setColumnWidth(AnimeListPageModel::AL_TITLE, 300);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_PROGRESS, 200);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_SCORE, 50);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_AVG_SCORE, 55);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_TYPE, 65);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_SEASON, 95);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_STARTED, 90);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_COMPLETED, 90);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_UPDATED, 100);
+	tree_view->setColumnWidth(AnimeListPageModel::AL_NOTES, 100);
+
 	QHBoxLayout* layout = new QHBoxLayout(tree_widget);
 	layout->addWidget(tree_view);
 	layout->setContentsMargins(0, 0, 0, 0);
@@ -487,5 +500,3 @@
 
 	Refresh();
 }
-
-#include "gui/pages/moc_anime_list.cpp"