comparison include/gui/widgets/poster.h @ 291:9a88e1725fd2

*: refactor lots of stuff I forgot to put this into different commits, oops! anyway, it doesn't really matter *that* much since this is an unfinished hobby project anyway. once it starts getting stable commit history will be more important, but for now it's not that big of a deal
author Paper <paper@paper.us.eu.org>
date Sun, 12 May 2024 16:31:07 -0400
parents f31305b9f60a
children b82841e76e79
comparison
equal deleted inserted replaced
290:9347e2eaf6e5 291:9a88e1725fd2
2 #define MINORI_GUI_WIDGETS_POSTER_H_ 2 #define MINORI_GUI_WIDGETS_POSTER_H_
3 #include <QFrame> 3 #include <QFrame>
4 #include <QImage> 4 #include <QImage>
5 5
6 #include "gui/widgets/clickable_label.h" 6 #include "gui/widgets/clickable_label.h"
7 #include "core/http.h"
7 8
8 class QWidget; 9 class QWidget;
9 namespace Anime { 10 namespace Anime {
10 class Anime; 11 class Anime;
11 } 12 }
23 void resizeEvent(QResizeEvent*) override; 24 void resizeEvent(QResizeEvent*) override;
24 void ImageDownloadFinished(const QByteArray& arr); 25 void ImageDownloadFinished(const QByteArray& arr);
25 void RenderToLabel(); 26 void RenderToLabel();
26 27
27 private: 28 private:
29 HTTP::RequestThread get_thread_;
30
28 QImage img_; 31 QImage img_;
29 QString service_url_; 32 QString service_url_;
30 ClickableLabel label_; 33 ClickableLabel label_;
31 bool clickable_ = true; 34 bool clickable_ = true;
32 }; 35 };