Mercurial > minori
diff src/gui/pages/now_playing.cc @ 82:8b65c417c225
*: fix old stuff, make video players and extensions constants
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 23 Oct 2023 13:37:42 -0400 |
parents | 9b2b41f83a5e |
children | d02fdf1d6708 |
line wrap: on
line diff
--- a/src/gui/pages/now_playing.cc Mon Oct 23 12:07:27 2023 -0400 +++ b/src/gui/pages/now_playing.cc Mon Oct 23 13:37:42 2023 -0400 @@ -1,5 +1,6 @@ #include "gui/pages/now_playing.h" #include "core/anime_db.h" +#include "core/strings.h" #include "gui/widgets/anime_info.h" #include "gui/widgets/text.h" #include <QLabel> @@ -7,10 +8,11 @@ #include <QVBoxLayout> #include <QWidget> -/* This is here to make it easier to switch between the - "sub-pages", i.e., not playing and playing. - - TODO: find a way to do this more efficiently */ +/* WARNING: HACKY STUFF HERE + + The Now Playing page is designed to "switch" between these two sub-pages, + using a QStackedWidget. This *could* be the best way to do this, but this + feels very very stupid and I really don't like it */ namespace NowPlayingPages { class Default : public QWidget { @@ -66,7 +68,7 @@ return; if (Anime::db.items.find(id) != Anime::db.items.end()) { const Anime::Anime& anime = Anime::db.items[_id = id]; - _title->setText(anime.GetUserPreferredTitle()); + _title->setText(Strings::ToQString(anime.GetUserPreferredTitle())); _info->SetAnime(anime); } }