Mercurial > minori
diff include/gui/pages/now_playing.h @ 83:d02fdf1d6708
*: huuuge update
1. make the now playing page function correctly
2. de-constructorfy many of our custom widgets,
allowing them to be changed on-the-fly from
the Now Playing page
3. ... :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 24 Oct 2023 22:01:02 -0400 |
parents | 825506f0e221 |
children | c69230dc2b5d |
line wrap: on
line diff
--- a/include/gui/pages/now_playing.h Mon Oct 23 13:37:42 2023 -0400 +++ b/include/gui/pages/now_playing.h Tue Oct 24 22:01:02 2023 -0400 @@ -4,6 +4,9 @@ #include <unordered_map> class QStackedWidget; +namespace Anime { +class Anime; +} class NowPlayingPage : public QFrame { Q_OBJECT @@ -11,7 +14,7 @@ public: NowPlayingPage(QWidget* parent = nullptr); void SetDefault(); - void SetPlaying(int id, const std::unordered_map<std::string, std::string>& episodes); + void SetPlaying(const Anime::Anime& anime, const std::unordered_map<std::string, std::string>& episodes); int GetPlayingId(); private: