Mercurial > minori
annotate include/gui/widgets/poster.h @ 72:893ad99b174d
dep/anitomy: add CXX_STANDARD to CMakeLists.txt
this fixes bugs when building on macOS, because Apple clang defaults to
C++98(?)
HG Enter commit message. Lines beginning with 'HG:' are removed.
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 03 Oct 2023 04:58:38 -0400 |
| parents | 442065432549 |
| 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 |
