Add graph to stats page; update Rules
[harbour-pedalo.git] / src / status.cpp
index 4a46cdf..aeff901 100644 (file)
@@ -109,7 +109,6 @@ QString Status::getFormattedTime(quint64 seconds, int min, int max) {
         portion = (unit == max - 1) ? remaining : remaining % base[unit];
         portions << portion;
         remaining /= base[unit];
-        qDebug() << plural[unit] << ": " << portion;
     }
 
     formatted = "";
@@ -131,3 +130,8 @@ QString Status::getFormattedTime(quint64 seconds, int min, int max) {
     return formatted;
 }
 
+QList<float> Status::getGraphData() {
+    static QList<float> data({0.1, 0.2, 0.3, 0.4, 1.0, 0.8, 0.7, 0.9, 0.5, 1.0});
+
+    return data;
+}