diff 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
line wrap: on
line diff
--- a/include/gui/widgets/anime_button.h	Tue Jul 16 21:15:59 2024 -0400
+++ b/include/gui/widgets/anime_button.h	Wed Oct 02 23:06:43 2024 -0400
@@ -13,7 +13,7 @@
 class Anime;
 }
 
-class AnimeButton : public QFrame {
+class AnimeButton final : public QFrame {
 	Q_OBJECT
 
 public:
@@ -21,6 +21,9 @@
 	AnimeButton(const Anime::Anime& anime, QWidget* parent = nullptr);
 	void SetAnime(const Anime::Anime& anime);
 
+	bool hasHeightForWidth() const override;
+	int heightForWidth(int w) const override;
+
 protected:
 	Poster _poster;
 	QLabel _title;