summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-11 19:40:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-13 11:39:36 -0800
commite5c30e042b8257b54e0611695e58246f42825b13 (patch)
tree9f1bea9c4a73911a920b9df3fd66a83e515d78d1
parent22ffe59a60907e9a2a3cff946a6c41f3a1675623 (diff)
downloadsubsurface-e5c30e042b8257b54e0611695e58246f42825b13.tar.gz
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>
-rw-r--r--mobile-widgets/qml/StatisticsPage.qml3
-rw-r--r--mobile-widgets/statsmanager.cpp4
2 files changed, 0 insertions, 7 deletions
diff --git a/mobile-widgets/qml/StatisticsPage.qml b/mobile-widgets/qml/StatisticsPage.qml
index e13d1ec6f..cf9f88368 100644
--- a/mobile-widgets/qml/StatisticsPage.qml
+++ b/mobile-widgets/qml/StatisticsPage.qml
@@ -20,14 +20,11 @@ Kirigami.Page {
id: statsManager
}
onVisibleChanged: {
- manager.appendTextToLog("StatisticsPage visible changed with width " + width + " with height " + rootItem.height + " we are " + (statisticsPage.wide ? "in" : "not in") + " wide mode")
if (visible)
statsManager.doit()
}
onWidthChanged: {
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()
}
}
diff --git a/mobile-widgets/statsmanager.cpp b/mobile-widgets/statsmanager.cpp
index 1280f0990..54fc804fd 100644
--- a/mobile-widgets/statsmanager.cpp
+++ b/mobile-widgets/statsmanager.cpp
@@ -3,10 +3,6 @@
StatsManager::StatsManager() : view(nullptr)
{
- // Test: show some random data. Let's see what happens.
- state.var1Changed(2);
- state.var2Changed(3);
- state.binner2Changed(2);
updateUi();
}