Mercurial > minori
diff include/gui/widgets/poster.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 | b1f625b0227c |
children |
line wrap: on
line diff
--- a/include/gui/widgets/poster.h Sun Jun 23 10:32:09 2024 -0400 +++ b/include/gui/widgets/poster.h Tue Jun 25 11:19:54 2024 -0400 @@ -20,6 +20,9 @@ void SetAnime(const Anime::Anime& anime); void SetClickable(bool clickable); + bool hasHeightForWidth(void) const override; + int heightForWidth(int w) const override; + protected: void showEvent(QShowEvent*) override; void resizeEvent(QResizeEvent*) override; @@ -27,6 +30,9 @@ void RenderToLabel(); void DownloadPoster(); + QSize sizeHint() const override; + QSize minimumSizeHint() const override; + private: /* stored as a pointer to prevent blocking */ HTTP::RequestThread* get_thread_;