Code Cleanup: SplitActivityWizard.h

.. removed commented out code for markers -- they cause QWT to crash anyway!
This commit is contained in:
Mark Liversedge
2013-02-13 11:57:30 +00:00
parent 78f624a393
commit fcf7662f3c

View File

@@ -160,7 +160,6 @@ class SplitBackground: public QwtPlotItem
{
private:
SplitActivityWizard *parent;
//XXX mutable QList<QwtPlotMarker*> 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);
}
}