view 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
line wrap: on
line source

#ifndef __gui__widgets__poster_h
#define __gui__widgets__poster_h
#include <QFrame>
#include <QImage>

class QWidget;
class QLabel;

class Poster : public QFrame {
		Q_OBJECT

	public:
		Poster(int id, QWidget* parent = nullptr);

	protected:
		void resizeEvent(QResizeEvent* event) override;

	private:
		QImage img;
		QLabel* label;
};

#endif // __gui__widgets__poster_h