mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
LTM tooltip for groupby weeks is misleading
.. it lists start date for this week to start date for next week .. now changed to say 'Week commencing <date>'. Fixes #501.
This commit is contained in:
@@ -1048,14 +1048,11 @@ LTMPlot::pointHover(QwtPlotCurve *curve, int index)
|
||||
|
||||
LTMScaleDraw *lsd = new LTMScaleDraw(settings->start, groupForDate(settings->start.date(), settings->groupBy), settings->groupBy);
|
||||
QwtText startText = lsd->label((int)(curve->sample(index).x()+0.5));
|
||||
QwtText endText;
|
||||
endText = lsd->label((int)(curve->sample(index).x()+1.5));
|
||||
|
||||
|
||||
if (settings->groupBy != LTM_WEEK)
|
||||
datestr = startText.text();
|
||||
else
|
||||
datestr = QString("%1 - %2").arg(startText.text()).arg(endText.text());
|
||||
datestr = QString(tr("Week Commencing %1")).arg(startText.text());
|
||||
|
||||
datestr = datestr.replace('\n', ' ');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user