Mercurial > minori
comparison src/gui/widgets/anime_info.cc @ 250:c130f47f6f48
*: many many changes
e.g. the search page is actually implemented now!
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Sun, 04 Feb 2024 21:17:17 -0500 |
| parents | 4d461ef7d424 |
| children | b3549da699a6 |
comparison
equal
deleted
inserted
replaced
| 249:6b2441c776dd | 250:c130f47f6f48 |
|---|---|
| 33 QTextStream details_data_s(&details_data); | 33 QTextStream details_data_s(&details_data); |
| 34 /* we have to convert ALL of these strings to | 34 /* we have to convert ALL of these strings to |
| 35 * QString because QTextStream sucks and assumes | 35 * QString because QTextStream sucks and assumes |
| 36 * Latin1 (on Windows?) | 36 * Latin1 (on Windows?) |
| 37 */ | 37 */ |
| 38 const auto genres = anime.GetGenres(); | |
| 38 details_data_s << Strings::ToQString(Translate::ToLocalString(anime.GetFormat())) << "\n" | 39 details_data_s << Strings::ToQString(Translate::ToLocalString(anime.GetFormat())) << "\n" |
| 39 << anime.GetEpisodes() << "\n" | 40 << anime.GetEpisodes() << "\n" |
| 40 << Strings::ToQString(Translate::ToLocalString(anime.GetUserStatus())) << "\n" | 41 << Strings::ToQString(Translate::ToLocalString(anime.GetAiringStatus())) << "\n" |
| 41 << Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) << " " | 42 << Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) << " " |
| 42 << anime.GetAirDate().GetYear().value_or(2000) << "\n" | 43 << anime.GetAirDate().GetYear().value_or(2000) << "\n" |
| 43 << Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) << "\n" | 44 << Strings::ToQString((genres.size() > 1) ? Strings::Implode(genres, ", ") : "-") << "\n" |
| 44 << anime.GetAudienceScore() << "%"; | 45 << anime.GetAudienceScore() << "%"; |
| 45 _details->GetParagraph()->SetText(details_data); | 46 _details->GetParagraph()->SetText(details_data); |
| 46 | 47 |
| 47 _synopsis->GetParagraph()->SetText(Strings::ToQString(anime.GetSynopsis())); | 48 _synopsis->GetParagraph()->SetText(Strings::ToQString(anime.GetSynopsis())); |
| 48 | 49 |
