Mercurial > minori
comparison src/gui/widgets/anime_info.cc @ 197:c4ca035c565d
*: misc. patches
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 08 Dec 2023 11:19:54 -0500 |
parents | 9613d72b097e |
children | 4d461ef7d424 |
comparison
equal
deleted
inserted
replaced
196:f0ff06a45c42 | 197:c4ca035c565d |
---|---|
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 details_data_s << Strings::ToQString(Translate::ToString(anime.GetFormat())) << "\n" | 38 details_data_s << Strings::ToQString(Translate::ToLocalString(anime.GetFormat())) << "\n" |
39 << anime.GetEpisodes() << "\n" | 39 << anime.GetEpisodes() << "\n" |
40 << Strings::ToQString(Translate::ToString(anime.GetUserStatus())) << "\n" | 40 << Strings::ToQString(Translate::ToLocalString(anime.GetUserStatus())) << "\n" |
41 << Strings::ToQString(Translate::ToString(anime.GetSeason())) << " " | 41 << Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) << " " |
42 << anime.GetAirDate().GetYear() << "\n" | 42 << anime.GetAirDate().GetYear().value_or(2000) << "\n" |
43 << Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) << "\n" | 43 << Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) << "\n" |
44 << anime.GetAudienceScore() << "%"; | 44 << anime.GetAudienceScore() << "%"; |
45 _details->GetParagraph()->SetText(details_data); | 45 _details->GetParagraph()->SetText(details_data); |
46 | 46 |
47 _synopsis->GetParagraph()->SetText(Strings::ToQString(anime.GetSynopsis())); | 47 _synopsis->GetParagraph()->SetText(Strings::ToQString(anime.GetSynopsis())); |