Mercurial > minori
comparison src/gui/widgets/anime_button.cc @ 291:9a88e1725fd2
*: refactor lots of stuff
I forgot to put this into different commits, oops!
anyway, it doesn't really matter *that* much since this is an
unfinished hobby project anyway. once it starts getting stable
commit history will be more important, but for now it's not
that big of a deal
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 12 May 2024 16:31:07 -0400 |
parents | f31305b9f60a |
children | b82841e76e79 |
comparison
equal
deleted
inserted
replaced
290:9347e2eaf6e5 | 291:9a88e1725fd2 |
---|---|
89 _poster.SetAnime(anime); | 89 _poster.SetAnime(anime); |
90 _title.setText(Strings::ToQString(anime.GetUserPreferredTitle())); | 90 _title.setText(Strings::ToQString(anime.GetUserPreferredTitle())); |
91 | 91 |
92 { | 92 { |
93 const QLocale& locale = session.config.locale.GetLocale(); | 93 const QLocale& locale = session.config.locale.GetLocale(); |
94 _info.GetParagraph()->SetText(locale.toString(anime.GetAirDate().GetAsQDate(), "dd MMM yyyy") + "\n" + | 94 _info.GetData()->setText(locale.toString(anime.GetAirDate().GetAsQDate(), "dd MMM yyyy") + "\n" + |
95 QString::number(anime.GetEpisodes()) + "\n" + | 95 QString::number(anime.GetEpisodes()) + "\n" + |
96 Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) + "\n" + "...\n" + | 96 Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) + "\n" + "...\n" + |
97 QString::number(anime.GetAudienceScore()) + "%\n" + "..."); | 97 QString::number(anime.GetAudienceScore()) + "%\n" + "..."); |
98 } | 98 } |
99 | 99 |
100 _synopsis.SetText(Strings::ToQString(anime.GetSynopsis())); | 100 _synopsis.SetText(Strings::ToQString(anime.GetSynopsis())); |
101 } | 101 } |