Mercurial > minori
comparison include/gui/pages/statistics.h @ 348:6b0768158dcd
text: redesign almost every widget
i.e. Paragraph is now a QLabel, etc etc, some things will probably
break, idc
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 25 Jun 2024 11:19:54 -0400 |
parents | 3ec7804abf17 |
children |
comparison
equal
deleted
inserted
replaced
347:a0aa8c8c4307 | 348:6b0768158dcd |
---|---|
2 #define MINORI_GUI_PAGES_STATISTICS_H_ | 2 #define MINORI_GUI_PAGES_STATISTICS_H_ |
3 | 3 |
4 #include <QFrame> | 4 #include <QFrame> |
5 #include <QWidget> | 5 #include <QWidget> |
6 | 6 |
7 template<typename T> | 7 #include "gui/widgets/graph.h" |
8 class Graph; | 8 #include "gui/widgets/text.h" |
9 | |
10 namespace TextWidgets { | |
11 class LabelledSection; | |
12 } | |
13 | 9 |
14 class StatisticsPage final : public QFrame { | 10 class StatisticsPage final : public QFrame { |
15 Q_OBJECT | 11 Q_OBJECT |
16 | 12 |
17 public: | 13 public: |
20 | 16 |
21 protected: | 17 protected: |
22 void showEvent(QShowEvent*) override; | 18 void showEvent(QShowEvent*) override; |
23 | 19 |
24 private: | 20 private: |
25 std::shared_ptr<TextWidgets::LabelledSection> _anime_list; | 21 TextWidgets::LabelledSection _anime_list; |
26 std::shared_ptr<Graph<int>> _score_distribution_graph; | 22 TextWidgets::LabelledSection _application; |
27 std::shared_ptr<TextWidgets::LabelledSection> _application; | 23 |
24 Graph<int> _score_distribution_graph; | |
28 }; | 25 }; |
29 | 26 |
30 #endif // MINORI_GUI_PAGES_STATISTICS_H_ | 27 #endif // MINORI_GUI_PAGES_STATISTICS_H_ |