comparison include/gui/widgets/anime_button.h @ 348:6b0768158dcd

text: redesign almost every widget i.e. Paragraph is now a QLabel, etc etc, some things will probably break, idc
author Paper <paper@paper.us.eu.org>
date Tue, 25 Jun 2024 11:19:54 -0400
parents f31305b9f60a
children f81bed4e04ac
comparison
equal deleted inserted replaced
347:a0aa8c8c4307 348:6b0768158dcd
12 namespace Anime { 12 namespace Anime {
13 class Anime; 13 class Anime;
14 } 14 }
15 15
16 class AnimeButton : public QFrame { 16 class AnimeButton : public QFrame {
17 Q_OBJECT
18
17 public: 19 public:
18 AnimeButton(QWidget* parent = nullptr); 20 AnimeButton(QWidget* parent = nullptr);
19 AnimeButton(const Anime::Anime& anime, QWidget* parent = nullptr); 21 AnimeButton(const Anime::Anime& anime, QWidget* parent = nullptr);
20 void SetAnime(const Anime::Anime& anime); 22 void SetAnime(const Anime::Anime& anime);
21 23
22 protected: 24 protected:
23 Poster _poster; 25 Poster _poster;
24 QLabel _title; 26 QLabel _title;
25 TextWidgets::LabelledParagraph _info; 27 TextWidgets::LabelledParagraph _info;
26 ElidedLabel _synopsis; 28 TextWidgets::Paragraph _synopsis;
27 }; 29 };
28 30
29 #endif // MINORI_GUI_WIDGETS_ANIME_BUTTON_H_ 31 #endif // MINORI_GUI_WIDGETS_ANIME_BUTTON_H_