Mercurial > minori
diff include/gui/pages/statistics.h @ 64:fe719c109dbc
*: update
1. add media tracking ability, and it displays info on the `now playing` page
2. the `now playing` page now actually shows something
3. renamed every page class to be more accurate to what it is
4. ...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 23:15:43 -0400 |
parents | 5c0397762b53 |
children | 3364fadc8a36 |
line wrap: on
line diff
--- a/include/gui/pages/statistics.h Sun Oct 01 06:39:47 2023 -0400 +++ b/include/gui/pages/statistics.h Sun Oct 01 23:15:43 2023 -0400 @@ -1,15 +1,18 @@ #ifndef __gui__pages__statistics_h #define __gui__pages__statistics_h -#include "gui/pages/anime_list.h" #include <QFrame> -#include <QPlainTextEdit> #include <QWidget> +//#include "gui/widgets/text.h" -class StatisticsWidget : public QFrame { +namespace TextWidgets { + class Paragraph; +} + +class StatisticsPage : public QFrame { Q_OBJECT public: - StatisticsWidget(QWidget* parent = nullptr); + StatisticsPage(QWidget* parent = nullptr); void UpdateStatistics(); protected: @@ -19,7 +22,7 @@ std::string MinutesToDateString(int minutes); std::string SecondsToDateString(int seconds); - QPlainTextEdit* anime_list_data; + TextWidgets::Paragraph* anime_list_data; // QPlainTextEdit* score_distribution_title; // QPlainTextEdit* score_distribution_labels; @@ -28,6 +31,6 @@ /* we don't HAVE a local database (yet ;)) */ // QPlainTextEdit* local_database_data; - QPlainTextEdit* application_data; + TextWidgets::Paragraph* application_data; }; #endif // __gui__pages__statistics_h \ No newline at end of file