comparison include/gui/pages/anime_list.h @ 15:cde8f67a7c7d

*: update, megacommit :)
author Paper <mrpapersonic@gmail.com>
date Tue, 19 Sep 2023 22:36:08 -0400
parents 4b198a111713
children 3d2decf093bb
comparison
equal deleted inserted replaced
14:a29c9402faf0 15:cde8f67a7c7d
42 AL_SEASON, 42 AL_SEASON,
43 AL_STARTED, 43 AL_STARTED,
44 AL_COMPLETED, 44 AL_COMPLETED,
45 AL_UPDATED, 45 AL_UPDATED,
46 AL_NOTES, 46 AL_NOTES,
47 AL_ID, /* Note: This is only used in Qt::UserRole to make my life easier */
48 47
49 NB_COLUMNS 48 NB_COLUMNS
50 }; 49 };
51 50
52 AnimeListWidgetModel(QWidget* parent, Anime::ListStatus _status); 51 AnimeListWidgetModel(QWidget* parent, Anime::ListStatus _status);
69 class AnimeListWidget : public QWidget { 68 class AnimeListWidget : public QWidget {
70 Q_OBJECT 69 Q_OBJECT
71 70
72 public: 71 public:
73 AnimeListWidget(QWidget* parent); 72 AnimeListWidget(QWidget* parent);
74 void RefreshList(); 73 void Refresh();
75 void Reset(); 74 void Reset();
76 75
77 protected: 76 protected:
78 void paintEvent(QPaintEvent*) override; 77 void paintEvent(QPaintEvent*) override;
79 void InitStyle(QStyleOptionTabWidgetFrame* option) const; 78 void InitStyle(QStyleOptionTabWidgetFrame* option) const;
80 void InitBasicStyle(QStyleOptionTabWidgetFrame* option) const; 79 void InitBasicStyle(QStyleOptionTabWidgetFrame* option) const;
81 void SetupLayout(); 80 void SetupLayout();
82 void showEvent(QShowEvent*) override; 81 void showEvent(QShowEvent*) override;
83 void resizeEvent(QResizeEvent* e) override; 82 void resizeEvent(QResizeEvent* e) override;
83 void RefreshList();
84 void RefreshTabs();
84 85
85 private slots: 86 private slots:
86 void DisplayColumnHeaderMenu(); 87 void DisplayColumnHeaderMenu();
87 void DisplayListMenu(); 88 void DisplayListMenu();
88 void ItemDoubleClicked(); 89 void ItemDoubleClicked();