Mercurial > minori
diff src/gui/widgets/anime_info.cc @ 83:d02fdf1d6708
*: huuuge update
1. make the now playing page function correctly
2. de-constructorfy many of our custom widgets,
allowing them to be changed on-the-fly from
the Now Playing page
3. ... :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 24 Oct 2023 22:01:02 -0400 |
parents | 8b65c417c225 |
children | 80f49f623d30 |
line wrap: on
line diff
--- a/src/gui/widgets/anime_info.cc Mon Oct 23 13:37:42 2023 -0400 +++ b/src/gui/widgets/anime_info.cc Tue Oct 24 22:01:02 2023 -0400 @@ -26,7 +26,7 @@ void AnimeInfoWidget::SetAnime(const Anime::Anime& anime) { /* alt titles */ - _title->GetLine()->setText(Strings::ToQString(Strings::Implode(anime.GetTitleSynonyms(), ", "))); + _title->GetLine()->SetText(Strings::ToQString(Strings::Implode(anime.GetTitleSynonyms(), ", "))); /* details */ QString details_data; @@ -37,9 +37,11 @@ << Translate::ToString(anime.GetSeason()).c_str() << " " << anime.GetAirDate().GetYear() << "\n" << Strings::Implode(anime.GetGenres(), ", ").c_str() << "\n" << anime.GetAudienceScore() << "%"; - _details->GetParagraph()->SetText(Strings::ToQString(Strings::Implode(anime.GetTitleSynonyms(), ", "))); + _details->GetParagraph()->SetText(details_data); - _synopsis->GetParagraph()->SetText(Strings::ToQString(Strings::Implode(anime.GetTitleSynonyms(), ", "))); + _synopsis->GetParagraph()->SetText(Strings::ToQString(anime.GetSynopsis())); + + updateGeometry(); } #include "gui/widgets/moc_anime_info.cpp"