#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);
	}
}
