Mercurial > minori
annotate include/gui/pages/statistics.h @ 95:8043152ef9d4
include: set classes as final where appropriate
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Wed, 01 Nov 2023 14:39:43 -0400 |
| parents | d5efb81540b3 |
| children | bd68e4393e6f |
| rev | line source |
|---|---|
| 9 | 1 #ifndef __gui__pages__statistics_h |
| 2 #define __gui__pages__statistics_h | |
| 85 | 3 |
| 9 | 4 #include <QFrame> |
| 5 #include <QWidget> | |
| 93 | 6 #include "gui/widgets/graph.h" |
| 9 | 7 |
| 64 | 8 namespace TextWidgets { |
| 93 | 9 class LabelledSection; |
| 64 | 10 } |
| 11 | |
|
95
8043152ef9d4
include: set classes as final where appropriate
Paper <mrpapersonic@gmail.com>
parents:
93
diff
changeset
|
12 class StatisticsPage final : public QFrame { |
| 9 | 13 Q_OBJECT |
| 14 | |
| 15 public: | |
| 64 | 16 StatisticsPage(QWidget* parent = nullptr); |
| 9 | 17 void UpdateStatistics(); |
| 18 | |
| 19 protected: | |
| 20 void showEvent(QShowEvent*) override; | |
| 21 | |
| 22 private: | |
| 23 std::string MinutesToDateString(int minutes); | |
| 24 std::string SecondsToDateString(int seconds); | |
| 25 | |
| 93 | 26 std::shared_ptr<TextWidgets::LabelledSection> _anime_list; |
| 27 std::shared_ptr<Graph<int>> _score_distribution_graph; | |
| 28 std::shared_ptr<TextWidgets::LabelledSection> _application; | |
| 9 | 29 }; |
| 85 | 30 |
| 9 | 31 #endif // __gui__pages__statistics_h |
