comparison include/gui/pages/anime_list.h @ 77:6f7385bd334c

*: update formatted all source files, no more subclassing QThread... many other changes :)
author Paper <mrpapersonic@gmail.com>
date Fri, 06 Oct 2023 06:18:53 -0400
parents fe719c109dbc
children d02fdf1d6708
comparison
equal deleted inserted replaced
76:3364fadc8a36 77:6f7385bd334c
52 ~AnimeListPageModel() override = default; 52 ~AnimeListPageModel() override = default;
53 int rowCount(const QModelIndex& parent = QModelIndex()) const override; 53 int rowCount(const QModelIndex& parent = QModelIndex()) const override;
54 int columnCount(const QModelIndex& parent = QModelIndex()) const override; 54 int columnCount(const QModelIndex& parent = QModelIndex()) const override;
55 QVariant data(const QModelIndex& index, int role) const override; 55 QVariant data(const QModelIndex& index, int role) const override;
56 QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const override; 56 QVariant headerData(const int section, const Qt::Orientation orientation, const int role) const override;
57 void UpdateAnime(int id);
58 void RefreshList(); 57 void RefreshList();
59 Anime::Anime* GetAnimeFromIndex(QModelIndex index); 58 Anime::Anime* GetAnimeFromIndex(QModelIndex index);
60 59
61 private: 60 private:
62 Anime::ListStatus status; 61 Anime::ListStatus status;
80 void SetupLayout(); 79 void SetupLayout();
81 void showEvent(QShowEvent*) override; 80 void showEvent(QShowEvent*) override;
82 void resizeEvent(QResizeEvent* e) override; 81 void resizeEvent(QResizeEvent* e) override;
83 void RefreshList(); 82 void RefreshList();
84 void RefreshTabs(); 83 void RefreshTabs();
84 void UpdateAnime(int id);
85 void RemoveAnime(int id);
85 86
86 private slots: 87 private slots:
87 void DisplayColumnHeaderMenu(); 88 void DisplayColumnHeaderMenu();
88 void DisplayListMenu(); 89 void DisplayListMenu();
89 void ItemDoubleClicked(); 90 void ItemDoubleClicked();