Mercurial > minori
comparison src/gui/widgets/anime_button.cc @ 324:5d3c9b31aa6e
anime: add completed date member
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 23:03:22 -0400 |
parents | b82841e76e79 |
children | 6b0768158dcd |
comparison
equal
deleted
inserted
replaced
323:1686fac290c5 | 324:5d3c9b31aa6e |
---|---|
90 _poster.SetAnime(anime); | 90 _poster.SetAnime(anime); |
91 _title.setText(Strings::ToQString(anime.GetUserPreferredTitle())); | 91 _title.setText(Strings::ToQString(anime.GetUserPreferredTitle())); |
92 | 92 |
93 { | 93 { |
94 const QLocale& locale = session.config.locale.GetLocale(); | 94 const QLocale& locale = session.config.locale.GetLocale(); |
95 _info.GetData()->setText(locale.toString(anime.GetAirDate().GetAsQDate(), "dd MMM yyyy") + "\n" + | 95 _info.GetData()->setText(locale.toString(anime.GetStartedDate().GetAsQDate(), "dd MMM yyyy") + "\n" + |
96 QString::number(anime.GetEpisodes()) + "\n" + | 96 QString::number(anime.GetEpisodes()) + "\n" + |
97 Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) + "\n" + "...\n" + | 97 Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) + "\n" + "...\n" + |
98 QString::number(anime.GetAudienceScore()) + "%\n" + "..."); | 98 QString::number(anime.GetAudienceScore()) + "%\n" + "..."); |
99 } | 99 } |
100 | 100 |