view 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 source

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