Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
66:6481c5aed3e1 | 67:442065432549 |
---|---|
2 #define __gui__widgets__poster_h | 2 #define __gui__widgets__poster_h |
3 #include <QFrame> | 3 #include <QFrame> |
4 #include <QImage> | 4 #include <QImage> |
5 | 5 |
6 class QWidget; | 6 class QWidget; |
7 class QLabel; | 7 class ClickableLabel; |
8 | 8 |
9 class Poster : public QFrame { | 9 class Poster : public QFrame { |
10 Q_OBJECT | 10 Q_OBJECT |
11 | 11 |
12 public: | 12 public: |
13 Poster(int id, QWidget* parent = nullptr); | 13 Poster(int id, QWidget* parent = nullptr); |
14 | 14 |
15 protected: | 15 protected: |
16 void resizeEvent(QResizeEvent* event) override; | 16 void resizeEvent(QResizeEvent*) override; |
17 | 17 |
18 private: | 18 private: |
19 QImage img; | 19 QImage img; |
20 QLabel* label; | 20 ClickableLabel* label; |
21 }; | 21 }; |
22 | 22 |
23 #endif // __gui__widgets__poster_h | 23 #endif // __gui__widgets__poster_h |