comparison src/gui/pages/seasons.cc @ 365:f81bed4e04ac

*: megacommit that probably breaks things
author Paper <paper@paper.us.eu.org>
date Wed, 02 Oct 2024 23:06:43 -0400
parents 83e6ba09338f
children
comparison
equal deleted inserted replaced
364:99c961c91809 365:f81bed4e04ac
65 65
66 for (const auto& id : Anime::db.GetAllAnimeForSeason(season_)) { 66 for (const auto& id : Anime::db.GetAllAnimeForSeason(season_)) {
67 QListWidgetItem* item = new QListWidgetItem; 67 QListWidgetItem* item = new QListWidgetItem;
68 AnimeButton* button = new AnimeButton(this); 68 AnimeButton* button = new AnimeButton(this);
69 button->SetAnime(Anime::db.items[id]); 69 button->SetAnime(Anime::db.items[id]);
70 item->setSizeHint(button->sizeHint()); 70 item->setSizeHint(QSize(500, 200));
71 buttons->addItem(item); 71 buttons->addItem(item);
72 buttons->setItemWidget(item, button); 72 buttons->setItemWidget(item, button);
73 } 73 }
74 74
75 season_button.setText(Strings::ToQString(Translate::ToLocalString(season_))); 75 season_button.setText(Strings::ToQString(Translate::ToLocalString(season_)));
230 buttons->setFlow(QListView::LeftToRight); 230 buttons->setFlow(QListView::LeftToRight);
231 buttons->setWrapping(true); 231 buttons->setWrapping(true);
232 buttons->setContentsMargins(4, 4, 4, 4); 232 buttons->setContentsMargins(4, 4, 4, 4);
233 buttons->setSpacing(2); 233 buttons->setSpacing(2);
234 buttons->setResizeMode(QListView::Adjust); 234 buttons->setResizeMode(QListView::Adjust);
235 buttons->setUniformItemSizes(true);
235 236
236 full_layout->addWidget(buttons); 237 full_layout->addWidget(buttons);
237 } 238 }
238 239
239 full_layout->setContentsMargins(0, 0, 0, 0); 240 full_layout->setContentsMargins(0, 0, 0, 0);