Mercurial > minori
annotate include/gui/widgets/poster.h @ 76:3364fadc8a36
*: format source code
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 04 Oct 2023 01:46:33 -0400 |
parents | d3e9310598b1 |
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 |