Mercurial > minori
diff src/gui/pages/seasons.cc @ 253:b3549da699a6
*: ooooh! stupid big commit!
oops
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 06 Feb 2024 16:56:32 -0500 |
parents | 4d461ef7d424 |
children | d14f8e0e40c3 |
line wrap: on
line diff
--- a/src/gui/pages/seasons.cc Tue Feb 06 02:24:49 2024 -0500 +++ b/src/gui/pages/seasons.cc Tue Feb 06 16:56:32 2024 -0500 @@ -1,4 +1,36 @@ #include "gui/pages/seasons.h" +#include "core/anime_db.h" +#include "gui/widgets/anime_button.h" +#include "gui/layouts/flow_layout.h" + +#include <QVBoxLayout> + SeasonsPage::SeasonsPage(QWidget* parent) : QWidget(parent) { + FlowLayout* ly = new FlowLayout(this); + { + AnimeButton* button = new AnimeButton(this); + button->SetAnime(Anime::db.items[Anime::db.GetAnimeFromTitle("Another")]); + ly->addWidget(button); + } + { + AnimeButton* button = new AnimeButton(this); + button->SetAnime(Anime::db.items[Anime::db.GetAnimeFromTitle("Another")]); + ly->addWidget(button); + } + { + AnimeButton* button = new AnimeButton(this); + button->SetAnime(Anime::db.items[Anime::db.GetAnimeFromTitle("Another")]); + ly->addWidget(button); + } + { + AnimeButton* button = new AnimeButton(this); + button->SetAnime(Anime::db.items[Anime::db.GetAnimeFromTitle("Another")]); + ly->addWidget(button); + } + { + AnimeButton* button = new AnimeButton(this); + button->SetAnime(Anime::db.items[Anime::db.GetAnimeFromTitle("Another")]); + ly->addWidget(button); + } }