Mercurial > minori
comparison src/gui/widgets/anime_info.cc @ 202:71832ffe425a
animia: re-add kvm fd source
this is all being merged from my wildly out-of-date laptop. SORRY!
in other news, I edited the CI file to install the wayland client
as well, so the linux CI build might finally get wayland stuff.
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Tue, 02 Jan 2024 06:05:06 -0500 |
| parents | c4ca035c565d |
| children | 4d461ef7d424 |
comparison
equal
deleted
inserted
replaced
| 201:8f6f8dd2eb23 | 202:71832ffe425a |
|---|---|
| 30 | 30 |
| 31 /* details */ | 31 /* details */ |
| 32 QString details_data; | 32 QString details_data; |
| 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 details_data_s << Strings::ToQString(Translate::ToString(anime.GetFormat())) << "\n" | 37 */ |
| 38 details_data_s << Strings::ToQString(Translate::ToLocalString(anime.GetFormat())) << "\n" | |
| 38 << anime.GetEpisodes() << "\n" | 39 << anime.GetEpisodes() << "\n" |
| 39 << Strings::ToQString(Translate::ToString(anime.GetUserStatus())) << "\n" | 40 << Strings::ToQString(Translate::ToLocalString(anime.GetUserStatus())) << "\n" |
| 40 << Strings::ToQString(Translate::ToString(anime.GetSeason())) << " " | 41 << Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) << " " |
| 41 << anime.GetAirDate().GetYear() << "\n" | 42 << anime.GetAirDate().GetYear().value_or(2000) << "\n" |
| 42 << Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) << "\n" | 43 << Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) << "\n" |
| 43 << anime.GetAudienceScore() << "%"; | 44 << anime.GetAudienceScore() << "%"; |
| 44 _details->GetParagraph()->SetText(details_data); | 45 _details->GetParagraph()->SetText(details_data); |
| 45 | 46 |
| 46 _synopsis->GetParagraph()->SetText(Strings::ToQString(anime.GetSynopsis())); | 47 _synopsis->GetParagraph()->SetText(Strings::ToQString(anime.GetSynopsis())); |
