diff src/gui/dialog/information.cpp @ 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 26721c28bf22
children 2417121d894e
line wrap: on
line diff
--- a/src/gui/dialog/information.cpp	Sun Oct 01 23:26:35 2023 -0400
+++ b/src/gui/dialog/information.cpp	Mon Oct 02 05:56:32 2023 -0400
@@ -6,6 +6,7 @@
 #include "gui/pages/anime_list.h"
 #include "gui/translate/anime.h"
 #include "gui/widgets/anime_info.h"
+#include "gui/widgets/poster.h"
 #include "gui/widgets/optional_date.h"
 #include "gui/widgets/text.h"
 #include "gui/window.h"
@@ -51,6 +52,11 @@
 
 	/* "sidebar", includes... just the anime image :) */
 	QWidget* sidebar = new QWidget(widget);
+	QVBoxLayout* sidebar_layout = new QVBoxLayout(sidebar);
+	Poster* poster = new Poster(anime.GetId(), sidebar);
+	sidebar_layout->addWidget(poster);
+	sidebar_layout->setContentsMargins(0, 0, 0, 0);
+	sidebar_layout->addStretch();
 	sidebar->setFixedWidth(175);
 
 	/* main widget */