Mercurial > minori
annotate include/gui/widgets/poster.h @ 81:9b2b41f83a5e
boring: mass rename to cc
because this is a very unix-y project, it makes more sense to use the
'cc' extension
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 23 Oct 2023 12:07:27 -0400 |
parents | 3364fadc8a36 |
children | d02fdf1d6708 |
rev | line source |
---|---|
66 | 1 #ifndef __gui__widgets__poster_h |
2 #define __gui__widgets__poster_h | |
76 | 3 #include <QByteArray> |
66 | 4 #include <QFrame> |
5 #include <QImage> | |
6 | |
7 class QWidget; | |
67
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
66
diff
changeset
|
8 class ClickableLabel; |
66 | 9 |
10 class Poster : public QFrame { | |
11 Q_OBJECT | |
12 | |
13 public: | |
14 Poster(int id, QWidget* parent = nullptr); | |
15 | |
16 protected: | |
67
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
66
diff
changeset
|
17 void resizeEvent(QResizeEvent*) override; |
75 | 18 void ImageDownloadFinished(QByteArray arr); |
19 void RenderToLabel(); | |
66 | 20 |
21 private: | |
22 QImage img; | |
67
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
66
diff
changeset
|
23 ClickableLabel* label; |
66 | 24 }; |
25 | |
26 #endif // __gui__widgets__poster_h |