diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/gui/widgets/poster.h	Mon Oct 02 05:56:32 2023 -0400
@@ -0,0 +1,23 @@
+#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
\ No newline at end of file