Mercurial > minori
diff src/gui/widgets/anime_info.cc @ 82:8b65c417c225
*: fix old stuff, make video players and extensions constants
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 23 Oct 2023 13:37:42 -0400 |
parents | 9b2b41f83a5e |
children | d02fdf1d6708 |
line wrap: on
line diff
--- a/src/gui/widgets/anime_info.cc Mon Oct 23 12:07:27 2023 -0400 +++ b/src/gui/widgets/anime_info.cc Mon Oct 23 13:37:42 2023 -0400 @@ -12,11 +12,10 @@ _title.reset(new TextWidgets::OneLineSection(tr("Alternative titles"), "", this)); layout->addWidget(_title.get()); - _details.reset(new TextWidgets::LabelledSection(tr("Details"), new TextWidgets::LabelledSection( - tr("Details"), tr("Type:\nEpisodes:\nStatus:\nSeason:\nGenres:\nScore:"), "", this), "", this)); + _details.reset(new TextWidgets::LabelledSection(tr("Details"), tr("Type:\nEpisodes:\nStatus:\nSeason:\nGenres:\nScore:"), "", this)); layout->addWidget(_details.get()); - _synopsis.reset(new TextWidgets::LabelledSection(tr("Synopsis"), "", this)); + _synopsis.reset(new TextWidgets::SelectableSection(tr("Synopsis"), "", this)); _synopsis->GetParagraph()->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); layout->addWidget(_synopsis.get()); } @@ -25,9 +24,9 @@ SetAnime(anime); } -AnimeInfoWidget::SetAnime(const Anime::Anime& anime) { +void AnimeInfoWidget::SetAnime(const Anime::Anime& anime) { /* alt titles */ - _title->GetParagraph()->SetText(Strings::ToQString(Strings::Implode(anime.GetTitleSynonyms(), ", "))); + _title->GetLine()->setText(Strings::ToQString(Strings::Implode(anime.GetTitleSynonyms(), ", "))); /* details */ QString details_data; @@ -39,10 +38,8 @@ << Strings::Implode(anime.GetGenres(), ", ").c_str() << "\n" << anime.GetAudienceScore() << "%"; _details->GetParagraph()->SetText(Strings::ToQString(Strings::Implode(anime.GetTitleSynonyms(), ", "))); - layout->addWidget(); _synopsis->GetParagraph()->SetText(Strings::ToQString(Strings::Implode(anime.GetTitleSynonyms(), ", "))); - layout->addWidget(synopsis); } #include "gui/widgets/moc_anime_info.cpp"