Mercurial > minori
view include/gui/pages/statistics.h @ 94:2f373d48f889
*: etc changes to graph stuff
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 14:30:26 -0400 |
parents | d5efb81540b3 |
children | 8043152ef9d4 |
line wrap: on
line source
#ifndef __gui__pages__statistics_h #define __gui__pages__statistics_h #include <QFrame> #include <QWidget> #include "gui/widgets/graph.h" namespace TextWidgets { class LabelledSection; } class StatisticsPage : public QFrame { Q_OBJECT public: StatisticsPage(QWidget* parent = nullptr); void UpdateStatistics(); protected: void showEvent(QShowEvent*) override; private: std::string MinutesToDateString(int minutes); std::string SecondsToDateString(int seconds); std::shared_ptr<TextWidgets::LabelledSection> _anime_list; std::shared_ptr<Graph<int>> _score_distribution_graph; std::shared_ptr<TextWidgets::LabelledSection> _application; }; #endif // __gui__pages__statistics_h