Mercurial > minori
annotate include/gui/widgets/anime_info.h @ 296:b2a4358da16c
scripts/win32: CRLF -> LF
this breaks win32 build scripts
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 13 May 2024 02:48:39 -0400 |
parents | 9a88e1725fd2 |
children | b1f625b0227c |
rev | line source |
---|---|
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
1 #ifndef MINORI_GUI_WIDGETS_ANIME_INFO_H_ |
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
2 #define MINORI_GUI_WIDGETS_ANIME_INFO_H_ |
85 | 3 |
64 | 4 #include <QWidget> |
291 | 5 #include "gui/widgets/text.h" |
64 | 6 |
7 namespace Anime { | |
76 | 8 class Anime; |
64 | 9 } |
10 | |
95
8043152ef9d4
include: set classes as final where appropriate
Paper <mrpapersonic@gmail.com>
parents:
85
diff
changeset
|
11 class AnimeInfoWidget final : public QWidget { |
258 | 12 Q_OBJECT |
64 | 13 |
258 | 14 public: |
15 AnimeInfoWidget(QWidget* parent = nullptr); | |
16 AnimeInfoWidget(const Anime::Anime& anime, QWidget* parent = nullptr); | |
17 void SetAnime(const Anime::Anime& anime); | |
80 | 18 |
258 | 19 private: |
291 | 20 TextWidgets::OneLineSection _title; |
21 TextWidgets::LabelledSection _details; | |
22 TextWidgets::SelectableSection _synopsis; | |
64 | 23 }; |
24 | |
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
25 #endif // MINORI_GUI_WIDGETS_ANIME_INFO_H_ |