Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/include/gui/pages/statistics.h Sun Jun 23 10:32:09 2024 -0400 +++ b/include/gui/pages/statistics.h Tue Jun 25 11:19:54 2024 -0400 @@ -4,12 +4,8 @@ #include <QFrame> #include <QWidget> -template<typename T> -class Graph; - -namespace TextWidgets { -class LabelledSection; -} +#include "gui/widgets/graph.h" +#include "gui/widgets/text.h" class StatisticsPage final : public QFrame { Q_OBJECT @@ -22,9 +18,10 @@ void showEvent(QShowEvent*) override; private: - std::shared_ptr<TextWidgets::LabelledSection> _anime_list; - std::shared_ptr<Graph<int>> _score_distribution_graph; - std::shared_ptr<TextWidgets::LabelledSection> _application; + TextWidgets::LabelledSection _anime_list; + TextWidgets::LabelledSection _application; + + Graph<int> _score_distribution_graph; }; #endif // MINORI_GUI_PAGES_STATISTICS_H_ \ No newline at end of file