Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
65:26721c28bf22 | 66:6481c5aed3e1 |
---|---|
4 #include "core/array.h" | 4 #include "core/array.h" |
5 #include "core/strings.h" | 5 #include "core/strings.h" |
6 #include "gui/pages/anime_list.h" | 6 #include "gui/pages/anime_list.h" |
7 #include "gui/translate/anime.h" | 7 #include "gui/translate/anime.h" |
8 #include "gui/widgets/anime_info.h" | 8 #include "gui/widgets/anime_info.h" |
9 #include "gui/widgets/poster.h" | |
9 #include "gui/widgets/optional_date.h" | 10 #include "gui/widgets/optional_date.h" |
10 #include "gui/widgets/text.h" | 11 #include "gui/widgets/text.h" |
11 #include "gui/window.h" | 12 #include "gui/window.h" |
12 #include <QCheckBox> | 13 #include <QCheckBox> |
13 #include <QComboBox> | 14 #include <QComboBox> |
49 | 50 |
50 QWidget* widget = new QWidget(this); | 51 QWidget* widget = new QWidget(this); |
51 | 52 |
52 /* "sidebar", includes... just the anime image :) */ | 53 /* "sidebar", includes... just the anime image :) */ |
53 QWidget* sidebar = new QWidget(widget); | 54 QWidget* sidebar = new QWidget(widget); |
55 QVBoxLayout* sidebar_layout = new QVBoxLayout(sidebar); | |
56 Poster* poster = new Poster(anime.GetId(), sidebar); | |
57 sidebar_layout->addWidget(poster); | |
58 sidebar_layout->setContentsMargins(0, 0, 0, 0); | |
59 sidebar_layout->addStretch(); | |
54 sidebar->setFixedWidth(175); | 60 sidebar->setFixedWidth(175); |
55 | 61 |
56 /* main widget */ | 62 /* main widget */ |
57 QWidget* main_widget = new QWidget(widget); | 63 QWidget* main_widget = new QWidget(widget); |
58 | 64 |