Mercurial > minori
annotate include/gui/widgets/poster.h @ 67:442065432549
poster: make posters link to AniList
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 02 Oct 2023 07:06:44 -0400 |
parents | 6481c5aed3e1 |
children | d3e9310598b1 |
rev | line source |
---|---|
66 | 1 #ifndef __gui__widgets__poster_h |
2 #define __gui__widgets__poster_h | |
3 #include <QFrame> | |
4 #include <QImage> | |
5 | |
6 class QWidget; | |
67
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
66
diff
changeset
|
7 class ClickableLabel; |
66 | 8 |
9 class Poster : public QFrame { | |
10 Q_OBJECT | |
11 | |
12 public: | |
13 Poster(int id, QWidget* parent = nullptr); | |
14 | |
15 protected: | |
67
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
66
diff
changeset
|
16 void resizeEvent(QResizeEvent*) override; |
66 | 17 |
18 private: | |
19 QImage img; | |
67
442065432549
poster: make posters link to AniList
Paper <mrpapersonic@gmail.com>
parents:
66
diff
changeset
|
20 ClickableLabel* label; |
66 | 21 }; |
22 | |
23 #endif // __gui__widgets__poster_h |