diff include/gui/widgets/poster.h @ 254:d14f8e0e40c3

[UNFINISHED] *: update anime button
author Paper <paper@paper.us.eu.org>
date Wed, 07 Feb 2024 07:57:37 -0500
parents 8043152ef9d4
children 3ec7804abf17
line wrap: on
line diff
--- a/include/gui/widgets/poster.h	Tue Feb 06 16:56:32 2024 -0500
+++ b/include/gui/widgets/poster.h	Wed Feb 07 07:57:37 2024 -0500
@@ -10,21 +10,24 @@
 }
 
 class Poster final : public QFrame {
-		Q_OBJECT
+	Q_OBJECT
 
-	public:
-		Poster(QWidget* parent = nullptr);
-		Poster(const Anime::Anime& anime, QWidget* parent = nullptr);
-		void SetAnime(const Anime::Anime& anime);
+public:
+	Poster(QWidget* parent = nullptr);
+	Poster(const Anime::Anime& anime, QWidget* parent = nullptr);
+	void SetAnime(const Anime::Anime& anime);
+	void SetClickable(bool clickable);
 
-	protected:
-		void resizeEvent(QResizeEvent*) override;
-		void ImageDownloadFinished(const QByteArray& arr);
-		void RenderToLabel();
+protected:
+	void resizeEvent(QResizeEvent*) override;
+	void ImageDownloadFinished(const QByteArray& arr);
+	void RenderToLabel();
 
-	private:
-		QImage img;
-		ClickableLabel* label;
+private:
+	QImage img;
+	QString service_url;
+	ClickableLabel* label;
+	bool clickable = true;
 };
 
 #endif // __gui__widgets__poster_h
\ No newline at end of file