comparison include/gui/widgets/anime_button.h @ 365:f81bed4e04ac

*: megacommit that probably breaks things
author Paper <paper@paper.us.eu.org>
date Wed, 02 Oct 2024 23:06:43 -0400
parents 6b0768158dcd
children
comparison
equal deleted inserted replaced
364:99c961c91809 365:f81bed4e04ac
11 11
12 namespace Anime { 12 namespace Anime {
13 class Anime; 13 class Anime;
14 } 14 }
15 15
16 class AnimeButton : public QFrame { 16 class AnimeButton final : public QFrame {
17 Q_OBJECT 17 Q_OBJECT
18 18
19 public: 19 public:
20 AnimeButton(QWidget* parent = nullptr); 20 AnimeButton(QWidget* parent = nullptr);
21 AnimeButton(const Anime::Anime& anime, QWidget* parent = nullptr); 21 AnimeButton(const Anime::Anime& anime, QWidget* parent = nullptr);
22 void SetAnime(const Anime::Anime& anime); 22 void SetAnime(const Anime::Anime& anime);
23
24 bool hasHeightForWidth() const override;
25 int heightForWidth(int w) const override;
23 26
24 protected: 27 protected:
25 Poster _poster; 28 Poster _poster;
26 QLabel _title; 29 QLabel _title;
27 TextWidgets::LabelledParagraph _info; 30 TextWidgets::LabelledParagraph _info;