Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 94:2f373d48f889 | 95:8043152ef9d4 |
|---|---|
| 7 | 7 |
| 8 namespace TextWidgets { | 8 namespace TextWidgets { |
| 9 class LabelledSection; | 9 class LabelledSection; |
| 10 } | 10 } |
| 11 | 11 |
| 12 class StatisticsPage : public QFrame { | 12 class StatisticsPage final : public QFrame { |
| 13 Q_OBJECT | 13 Q_OBJECT |
| 14 | 14 |
| 15 public: | 15 public: |
| 16 StatisticsPage(QWidget* parent = nullptr); | 16 StatisticsPage(QWidget* parent = nullptr); |
| 17 void UpdateStatistics(); | 17 void UpdateStatistics(); |
| 22 private: | 22 private: |
| 23 std::string MinutesToDateString(int minutes); | 23 std::string MinutesToDateString(int minutes); |
| 24 std::string SecondsToDateString(int seconds); | 24 std::string SecondsToDateString(int seconds); |
| 25 | 25 |
| 26 std::shared_ptr<TextWidgets::LabelledSection> _anime_list; | 26 std::shared_ptr<TextWidgets::LabelledSection> _anime_list; |
| 27 | |
| 28 std::shared_ptr<Graph<int>> _score_distribution_graph; | 27 std::shared_ptr<Graph<int>> _score_distribution_graph; |
| 29 | |
| 30 std::shared_ptr<TextWidgets::LabelledSection> _application; | 28 std::shared_ptr<TextWidgets::LabelledSection> _application; |
| 31 }; | 29 }; |
| 32 | 30 |
| 33 #endif // __gui__pages__statistics_h | 31 #endif // __gui__pages__statistics_h |
