comparison 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
comparison
equal deleted inserted replaced
81:9b2b41f83a5e 82:8b65c417c225
1 #ifndef __gui__widgets__anime_info_h 1 #ifndef __gui__widgets__anime_info_h
2 #define __gui__widgets__anime_info_h 2 #define __gui__widgets__anime_info_h
3 #include <QWidget> 3 #include <QWidget>
4 #include "gui/widgets/text.h"
4 5
5 namespace Anime { 6 namespace Anime {
6 class Anime; 7 class Anime;
7 } 8 }
8 9
10 Q_OBJECT 11 Q_OBJECT
11 12
12 public: 13 public:
13 AnimeInfoWidget(QWidget* parent = nullptr); 14 AnimeInfoWidget(QWidget* parent = nullptr);
14 AnimeInfoWidget(const Anime::Anime& anime, QWidget* parent = nullptr); 15 AnimeInfoWidget(const Anime::Anime& anime, QWidget* parent = nullptr);
15 SetAnime(const Anime::Anime& anime); 16 void SetAnime(const Anime::Anime& anime);
16 17
17 private: 18 private:
18 std::shared_ptr<TextWidgets::OneLineSection> _title = nullptr; 19 std::shared_ptr<TextWidgets::OneLineSection> _title = nullptr;
19 std::shared_ptr<TextWidgets::LabelledSection> _details = nullptr; 20 std::shared_ptr<TextWidgets::LabelledSection> _details = nullptr;
20 std::shared_ptr<TextWidgets::SelectableSection> _synopsis = nullptr; 21 std::shared_ptr<TextWidgets::SelectableSection> _synopsis = nullptr;