comparison include/gui/widgets/poster.h @ 66:6481c5aed3e1

posters: add poster widget... why does AniList call these cover images? they're posters...
author Paper <mrpapersonic@gmail.com>
date Mon, 02 Oct 2023 05:56:32 -0400
parents
children 442065432549
comparison
equal deleted inserted replaced
65:26721c28bf22 66:6481c5aed3e1
1 #ifndef __gui__widgets__poster_h
2 #define __gui__widgets__poster_h
3 #include <QFrame>
4 #include <QImage>
5
6 class QWidget;
7 class QLabel;
8
9 class Poster : public QFrame {
10 Q_OBJECT
11
12 public:
13 Poster(int id, QWidget* parent = nullptr);
14
15 protected:
16 void resizeEvent(QResizeEvent* event) override;
17
18 private:
19 QImage img;
20 QLabel* label;
21 };
22
23 #endif // __gui__widgets__poster_h