comparison src/gui/pages/anime_list.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
comparison
equal deleted inserted replaced
249:6b2441c776dd 250:c130f47f6f48
273 } 273 }
274 274
275 void AnimeListPage::DisplayListMenu() { 275 void AnimeListPage::DisplayListMenu() {
276 QMenu* menu = new QMenu(this); 276 QMenu* menu = new QMenu(this);
277 menu->setAttribute(Qt::WA_DeleteOnClose); 277 menu->setAttribute(Qt::WA_DeleteOnClose);
278 menu->setTitle(tr("Column visibility"));
279 menu->setToolTipsVisible(true); 278 menu->setToolTipsVisible(true);
280 279
281 AnimeListPageModel* source_model = 280 AnimeListPageModel* source_model =
282 reinterpret_cast<AnimeListPageModel*>(sort_models[tab_bar->currentIndex()]->sourceModel()); 281 reinterpret_cast<AnimeListPageModel*>(sort_models[tab_bar->currentIndex()]->sourceModel());
283 const QItemSelection selection = 282 const QItemSelection selection =
422 SetupLayout(); 421 SetupLayout();
423 } 422 }
424 423
425 void AnimeListPage::showEvent(QShowEvent*) { 424 void AnimeListPage::showEvent(QShowEvent*) {
426 SetupLayout(); 425 SetupLayout();
426 Refresh();
427 } 427 }
428 428
429 /* --------- QTabWidget replication end ---------- */ 429 /* --------- QTabWidget replication end ---------- */
430 430
431 AnimeListPage::AnimeListPage(QWidget* parent) : QWidget(parent) { 431 AnimeListPage::AnimeListPage(QWidget* parent) : QWidget(parent) {
495 }); 495 });
496 496
497 SetColumnDefaults(); 497 SetColumnDefaults();
498 setFocusPolicy(Qt::TabFocus); 498 setFocusPolicy(Qt::TabFocus);
499 setFocusProxy(tab_bar); 499 setFocusProxy(tab_bar);
500 500 }
501 Refresh();
502 }