view include/gui/pages/seasons.h @ 307:8769c5d50b06

pages/anime_list: don't call GUI functions in a non-GUI thread
author Paper <paper@paper.us.eu.org>
date Sun, 19 May 2024 18:25:14 -0400
parents b82841e76e79
children 78929794e7d8
line wrap: on
line source

#ifndef MINORI_GUI_PAGES_SEASONS_H_
#define MINORI_GUI_PAGES_SEASONS_H_

#include <QFrame>

#include "core/anime.h"
#include "core/date.h"

class QListWidget;
class QToolButton;

class SeasonsPage final : public QFrame {
	Q_OBJECT

public:
	SeasonsPage(QWidget* parent = nullptr);
	void SetSeason(Anime::SeriesSeason season, Date::Year year);

protected:
	QListWidget* buttons = nullptr;
	QToolButton* season_button = nullptr;
};

#endif // MINORI_GUI_PAGES_SEASONS_H_