From fcf7662f3c24de4f9f9395bbf4c392f5da7fceb9 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 13 Feb 2013 11:57:30 +0000 Subject: [PATCH] Code Cleanup: SplitActivityWizard.h .. removed commented out code for markers -- they cause QWT to crash anyway! --- src/SplitActivityWizard.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/SplitActivityWizard.h b/src/SplitActivityWizard.h index 62e62f29a..b81acdd4b 100644 --- a/src/SplitActivityWizard.h +++ b/src/SplitActivityWizard.h @@ -160,7 +160,6 @@ class SplitBackground: public QwtPlotItem { private: SplitActivityWizard *parent; - //XXX mutable QList labs; //XXX disabled as causes QWT6 to crash (!) public: @@ -184,10 +183,6 @@ class SplitBackground: public QwtPlotItem double lastmark = -1; int segment = 0; - // clear the labels - //XXX foreach(QwtPlotMarker *l, labs) { l->detach(); delete l; } - //XXX labs.clear(); - // create a sorted list of markers, since we // may have duplicates and the sequence is // not guaranteed to be ordered @@ -228,18 +223,6 @@ class SplitBackground: public QwtPlotItem segment++; // starts at 0 so increment before use to start from 1 painter->fillRect(r, segment%2 ? QColor(216,233,255,200) : QColor(233,255,222,200)); - - // segment number - //XXX QwtText text(QString("%1").arg(segment)); - //XXX text.setFont(QFont("Helvetica", 48, QFont::Bold)); - //XXX text.setColor(Qt::lightGray); - - // place the text in the geometric mean in time, at a decent power - //XXX QwtPlotMarker *label = new QwtPlotMarker; - //XXX label->setValue((lastmark+mark)/2, 200); - //XXX label->setLabel(text); - //XXX label->attach(plot()); - //XXX labs.append(label); } }