Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
235:593108b3d555 | 236:4d461ef7d424 |
---|---|
453 sort_models[i] = new AnimeListPageSortFilter(tree_view); | 453 sort_models[i] = new AnimeListPageSortFilter(tree_view); |
454 sort_models[i]->setSourceModel(new AnimeListPageModel(this, Anime::ListStatuses[i])); | 454 sort_models[i]->setSourceModel(new AnimeListPageModel(this, Anime::ListStatuses[i])); |
455 sort_models[i]->setSortRole(Qt::UserRole); | 455 sort_models[i]->setSortRole(Qt::UserRole); |
456 sort_models[i]->setSortCaseSensitivity(Qt::CaseInsensitive); | 456 sort_models[i]->setSortCaseSensitivity(Qt::CaseInsensitive); |
457 } | 457 } |
458 | |
458 tree_view->setModel(sort_models[0]); | 459 tree_view->setModel(sort_models[0]); |
460 | |
461 /* Set column widths */ | |
462 tree_view->setColumnWidth(AnimeListPageModel::AL_TITLE, 300); | |
463 tree_view->setColumnWidth(AnimeListPageModel::AL_PROGRESS, 200); | |
464 tree_view->setColumnWidth(AnimeListPageModel::AL_SCORE, 50); | |
465 tree_view->setColumnWidth(AnimeListPageModel::AL_AVG_SCORE, 55); | |
466 tree_view->setColumnWidth(AnimeListPageModel::AL_TYPE, 65); | |
467 tree_view->setColumnWidth(AnimeListPageModel::AL_SEASON, 95); | |
468 tree_view->setColumnWidth(AnimeListPageModel::AL_STARTED, 90); | |
469 tree_view->setColumnWidth(AnimeListPageModel::AL_COMPLETED, 90); | |
470 tree_view->setColumnWidth(AnimeListPageModel::AL_UPDATED, 100); | |
471 tree_view->setColumnWidth(AnimeListPageModel::AL_NOTES, 100); | |
459 | 472 |
460 QHBoxLayout* layout = new QHBoxLayout(tree_widget); | 473 QHBoxLayout* layout = new QHBoxLayout(tree_widget); |
461 layout->addWidget(tree_view); | 474 layout->addWidget(tree_view); |
462 layout->setContentsMargins(0, 0, 0, 0); | 475 layout->setContentsMargins(0, 0, 0, 0); |
463 | 476 |
485 setFocusPolicy(Qt::TabFocus); | 498 setFocusPolicy(Qt::TabFocus); |
486 setFocusProxy(tab_bar); | 499 setFocusProxy(tab_bar); |
487 | 500 |
488 Refresh(); | 501 Refresh(); |
489 } | 502 } |
490 | |
491 #include "gui/pages/moc_anime_list.cpp" |