view include/gui/widgets/poster.h @ 68:2417121d894e

*: normalize usage of layouts before, I used them two ways, once was by setting the layout later by using setLayout(QWidget), and the other was just using the constructor. I find the constructor to be easier to read, so I chose that one.
author Paper <mrpapersonic@gmail.com>
date Mon, 02 Oct 2023 21:33:25 -0400
parents 442065432549
children d3e9310598b1
line wrap: on
line source

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

class QWidget;
class ClickableLabel;

class Poster : public QFrame {
		Q_OBJECT

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

	protected:
		void resizeEvent(QResizeEvent*) override;

	private:
		QImage img;
		ClickableLabel* label;
};

#endif // __gui__widgets__poster_h