comparison src/gui/dialog/information.cc @ 86:c912128af0eb

*: various macos fixes todo: push that bsd thing to upstream
author Paper <mrpapersonic@gmail.com>
date Tue, 31 Oct 2023 13:52:36 -0400
parents d02fdf1d6708
children 4aef97f4d998
comparison
equal deleted inserted replaced
85:c69230dc2b5d 86:c912128af0eb
147 CREATE_SECTION(sg_anime_list_content, { 147 CREATE_SECTION(sg_anime_list_content, {
148 /* Status & score section */ 148 /* Status & score section */
149 CREATE_SUBSECTION({ 149 CREATE_SUBSECTION({
150 subsection_layout->addWidget(new QLabel(tr("Status:"), subsection)); 150 subsection_layout->addWidget(new QLabel(tr("Status:"), subsection));
151 151
152 /* FIXME: this sucks */
152 QStringList string_list; 153 QStringList string_list;
153 for (unsigned int i = 0; i < Anime::ListStatuses.size(); i++) 154 for (unsigned int i = 0; i < Anime::ListStatuses.size(); i++)
154 string_list.append(Strings::ToQString(Translate::ToString(Anime::ListStatuses[i]))); 155 string_list.append(Strings::ToQString(Translate::ToString(Anime::ListStatuses[i])));
155 156
156 QComboBox* combo_box = new QComboBox(subsection); 157 QComboBox* combo_box = new QComboBox(subsection);
254 255
255 QVBoxLayout* main_layout = new QVBoxLayout(main_widget); 256 QVBoxLayout* main_layout = new QVBoxLayout(main_widget);
256 main_layout->addWidget(anime_title); 257 main_layout->addWidget(anime_title);
257 main_layout->addWidget(tabbed_widget); 258 main_layout->addWidget(tabbed_widget);
258 main_layout->setContentsMargins(0, 0, 0, 0); 259 main_layout->setContentsMargins(0, 0, 0, 0);
260 main_layout->setSpacing(12);
259 261
260 QHBoxLayout* layout = new QHBoxLayout(widget); 262 QHBoxLayout* layout = new QHBoxLayout(widget);
261 layout->addWidget(sidebar); 263 layout->addWidget(sidebar);
262 layout->addWidget(main_widget); 264 layout->addWidget(main_widget);
263 layout->setSpacing(12); 265 layout->setSpacing(12);