projects
/
harbour-pedalo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add graph to stats page; update Rules
[harbour-pedalo.git]
/
src
/
status.cpp
diff --git
a/src/status.cpp
b/src/status.cpp
index
4a46cdf
..
aeff901
100644
(file)
--- a/
src/status.cpp
+++ b/
src/status.cpp
@@
-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];
portion = (unit == max - 1) ? remaining : remaining % base[unit];
portions << portion;
remaining /= base[unit];
- qDebug() << plural[unit] << ": " << portion;
}
formatted = "";
}
formatted = "";
@@
-131,3
+130,8
@@
QString Status::getFormattedTime(quint64 seconds, int min, int max) {
return formatted;
}
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;
+}