From b8f23a14a4940b2ccde7a3fdbcc5a583a2d1d012 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 11 Feb 2013 14:15:43 +0000 Subject: [PATCH] Code Cleanup: Charts .. comments explain decisions, no action required. --- src/PerfPlot.cpp | 4 ++-- src/PowerHist.cpp | 4 ++-- src/ScatterWindow.cpp | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/PerfPlot.cpp b/src/PerfPlot.cpp index ade838027..2406c809f 100644 --- a/src/PerfPlot.cpp +++ b/src/PerfPlot.cpp @@ -152,8 +152,8 @@ void PerfPlot::plot() { DAYcurve->setPen(daypen); DAYcurve->setStyle(QwtPlotCurve::Sticks); - // XXX Note: the days are offset by 1 without the -1 in the - // line below --------------+ + // Note: the days are offset by 1 without the -1 in the + // line below ------------------+ // | // V DAYcurve->setData(_sc->getDays()+xmin -1 ,_sc->getDAYvalues()+xmin,num); diff --git a/src/PowerHist.cpp b/src/PowerHist.cpp index 52e03431a..f0013b71f 100644 --- a/src/PowerHist.cpp +++ b/src/PowerHist.cpp @@ -528,14 +528,14 @@ PowerHist::recalc(bool force) if (source == Cache && zoned && (series == RideFile::watts || series == RideFile::wattsKg) && mainWindow->zones()) { setAxisScaleDraw(QwtPlot::xBottom, new ZoneScaleDraw(mainWindow->zones(), 0)); if (mainWindow->zones()->getRangeSize()) - setAxisScale(QwtPlot::xBottom, -0.99, mainWindow->zones()->numZones(0), 1); // XXX use zones from first defined range + setAxisScale(QwtPlot::xBottom, -0.99, mainWindow->zones()->numZones(0), 1); // use zones from first defined range } // hr zoned for a time range if (source == Cache && zoned && series == RideFile::hr && mainWindow->hrZones()) { setAxisScaleDraw(QwtPlot::xBottom, new HrZoneScaleDraw(mainWindow->hrZones(), 0)); if (mainWindow->hrZones()->getRangeSize()) - setAxisScale(QwtPlot::xBottom, -0.99, mainWindow->hrZones()->numZones(0), 1); // XXX use zones from first defined range + setAxisScale(QwtPlot::xBottom, -0.99, mainWindow->hrZones()->numZones(0), 1); // use zones from first defined range } setAxisMaxMinor(QwtPlot::xBottom, 0); diff --git a/src/ScatterWindow.cpp b/src/ScatterWindow.cpp index 33cc254e0..6814e6198 100644 --- a/src/ScatterWindow.cpp +++ b/src/ScatterWindow.cpp @@ -40,9 +40,9 @@ ScatterWindow::addStandardChannels(QComboBox *box) box->addItem(tr("CPV"), MODEL_CPV); box->addItem(tr("Time"), MODEL_TIME); box->addItem(tr("Distance"), MODEL_DISTANCE); - //box->addItem(tr("Interval"), MODEL_INTERVAL); //XXX supported differently for now - //box->addItem(tr("Latitude"), MODEL_LAT); //XXX weird values make the plot ugly - //box->addItem(tr("Longitude"), MODEL_LONG); //XXX weird values make the plot ugly + //box->addItem(tr("Interval"), MODEL_INTERVAL); //supported differently for now + //box->addItem(tr("Latitude"), MODEL_LAT); //weird values make the plot ugly + //box->addItem(tr("Longitude"), MODEL_LONG); //weird values make the plot ugly } void