Mercurial > minori
annotate include/gui/widgets/anime_info.h @ 82:8b65c417c225
*: fix old stuff, make video players and extensions constants
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 23 Oct 2023 13:37:42 -0400 |
parents | 825506f0e221 |
children | c69230dc2b5d |
rev | line source |
---|---|
64 | 1 #ifndef __gui__widgets__anime_info_h |
2 #define __gui__widgets__anime_info_h | |
3 #include <QWidget> | |
82
8b65c417c225
*: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
80
diff
changeset
|
4 #include "gui/widgets/text.h" |
64 | 5 |
6 namespace Anime { | |
76 | 7 class Anime; |
64 | 8 } |
9 | |
10 class AnimeInfoWidget : public QWidget { | |
11 Q_OBJECT | |
12 | |
13 public: | |
80 | 14 AnimeInfoWidget(QWidget* parent = nullptr); |
64 | 15 AnimeInfoWidget(const Anime::Anime& anime, QWidget* parent = nullptr); |
82
8b65c417c225
*: fix old stuff, make video players and extensions constants
Paper <mrpapersonic@gmail.com>
parents:
80
diff
changeset
|
16 void SetAnime(const Anime::Anime& anime); |
80 | 17 |
18 private: | |
19 std::shared_ptr<TextWidgets::OneLineSection> _title = nullptr; | |
20 std::shared_ptr<TextWidgets::LabelledSection> _details = nullptr; | |
21 std::shared_ptr<TextWidgets::SelectableSection> _synopsis = nullptr; | |
64 | 22 }; |
23 | |
24 #endif // __gui__widgets__anime_info_h |