mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Merge pull request #1482 from amtriathlon/master
Minor tweak in Histogram round numbers for labels
This commit is contained in:
@@ -648,7 +648,7 @@ PowerHist::recalcCompare()
|
||||
|
||||
// now add a label above the bar
|
||||
QwtPlotMarker *label = new QwtPlotMarker();
|
||||
QwtText text(QString("%1%2").arg(int(yval)).arg(absolutetime ? "" : "%"), QwtText::PlainText);
|
||||
QwtText text(QString("%1%2").arg(round(yval)).arg(absolutetime ? "" : "%"), QwtText::PlainText);
|
||||
text.setFont(labelFont);
|
||||
text.setColor(color);
|
||||
label->setLabel(text);
|
||||
@@ -886,7 +886,7 @@ PowerHist::recalc(bool force)
|
||||
|
||||
// now add a label above the bar
|
||||
QwtPlotMarker *label = new QwtPlotMarker();
|
||||
QwtText text(QString("%1%2").arg(int(yval)).arg(absolutetime ? "" : "%"), QwtText::PlainText);
|
||||
QwtText text(QString("%1%2").arg(round(yval)).arg(absolutetime ? "" : "%"), QwtText::PlainText);
|
||||
text.setFont(labelFont);
|
||||
if (series == RideFile::watts)
|
||||
text.setColor(GColor(CPOWER).darker(200));
|
||||
|
||||
Reference in New Issue
Block a user