Mercurial > minori
comparison include/gui/pages/seasons.h @ 260:dd211ff68b36
pages/seasons: add initial functionality
the menu doesn't work yet, but it's a good start
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Wed, 03 Apr 2024 19:48:38 -0400 |
| parents | fe702c8f161f |
| children | 3ec7804abf17 |
comparison
equal
deleted
inserted
replaced
| 259:0362f3c4534c | 260:dd211ff68b36 |
|---|---|
| 1 #ifndef __gui__pages__seasons_h | 1 #ifndef __gui__pages__seasons_h |
| 2 #define __gui__pages__seasons_h | 2 #define __gui__pages__seasons_h |
| 3 | 3 |
| 4 #include <QWidget> | 4 #include <QWidget> |
| 5 | |
| 6 #include "core/anime.h" | |
| 7 #include "core/date.h" | |
| 5 | 8 |
| 6 class QListWidget; | 9 class QListWidget; |
| 7 class QResizeEvent; | 10 class QResizeEvent; |
| 8 | 11 |
| 9 class SeasonsPage final : public QWidget { | 12 class SeasonsPage final : public QWidget { |
| 10 Q_OBJECT | 13 Q_OBJECT |
| 11 | 14 |
| 12 public: | 15 public: |
| 13 SeasonsPage(QWidget* parent = nullptr); | 16 SeasonsPage(QWidget* parent = nullptr); |
| 17 void SetSeason(Anime::SeriesSeason season, Date::Year year); | |
| 14 | 18 |
| 15 protected: | 19 protected: |
| 16 QListWidget* buttons = nullptr; | 20 QListWidget* buttons = nullptr; |
| 17 }; | 21 }; |
| 18 | 22 |
