mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
ErgFile now supports 'named' intervals
As a precursor to more sophisticated workout creation and config, the ergfile format and plot now supports named intervals. This is so we can identify blocks of the workout and reuse them by name (rather than having to select a section, which should also be supported).
This commit is contained in:
@@ -225,7 +225,7 @@ ErgFilePlot::setData(ErgFile *ergfile)
|
||||
for(int i=0; i < ergFile->Laps.count(); i++) {
|
||||
|
||||
// Show Lap Number
|
||||
QwtText text(QString::number(ergFile->Laps.at(i).LapNum));
|
||||
QwtText text(ergFile->Laps.at(i).name != "" ? ergFile->Laps.at(i).name : QString::number(ergFile->Laps.at(i).LapNum));
|
||||
text.setFont(QFont("Helvetica", 10, QFont::Bold));
|
||||
text.setColor(GColor(CPLOTMARKER));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user