mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
add seconds to plot scale label under 5 minutes
This commit is contained in:
@@ -208,8 +208,10 @@ class TimeScaleDraw: public QwtScaleDraw
|
||||
if (*bydist) {
|
||||
return QString("%1").arg(v);
|
||||
} else {
|
||||
QTime t = QTime().addSecs((int)v*60);
|
||||
return t.toString("hh:mm");
|
||||
QTime t = QTime().addSecs(v*60.00);
|
||||
if (scaleMap().sDist() > 5)
|
||||
return t.toString("hh:mm");
|
||||
return t.toString("hh:mm:ss");
|
||||
}
|
||||
}
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user