mobile/statistics: start with dives per year bar chart

That seems to be the most commonly usefule chart.

This also removes some noisy log messages; these were super useful
during development, but should have been merged.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-01-11 19:40:20 -08:00
parent 22ffe59a60
commit e5c30e042b
2 changed files with 0 additions and 7 deletions

View file

@ -20,14 +20,11 @@ Kirigami.Page {
id: statsManager id: statsManager
} }
onVisibleChanged: { onVisibleChanged: {
manager.appendTextToLog("StatisticsPage visible changed with width " + width + " with height " + rootItem.height + " we are " + (statisticsPage.wide ? "in" : "not in") + " wide mode")
if (visible) if (visible)
statsManager.doit() statsManager.doit()
} }
onWidthChanged: { onWidthChanged: {
if (visible) { if (visible) {
manager.appendTextToLog("StatisticsPage width changed to " + width + " with height " + height + " we are " +
(statisticsPage.wide ? "in" : "not in") + " wide mode - screen " + Screen.width + " x " + Screen.height )
statsManager.doit() statsManager.doit()
} }
} }

View file

@ -3,10 +3,6 @@
StatsManager::StatsManager() : view(nullptr) StatsManager::StatsManager() : view(nullptr)
{ {
// Test: show some random data. Let's see what happens.
state.var1Changed(2);
state.var2Changed(3);
state.binner2Changed(2);
updateUi(); updateUi();
} }