From f4949df9ea6cabc8081f46383d6679fba6a7f4d2 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Fri, 8 Mar 2013 12:50:42 +0000 Subject: [PATCH] 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 '. Fixes #501. --- src/LTMPlot.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/LTMPlot.cpp b/src/LTMPlot.cpp index ce8fe422c..8e3cb4d7a 100644 --- a/src/LTMPlot.cpp +++ b/src/LTMPlot.cpp @@ -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', ' ');