Commit 86de69d4 authored by Bryant's avatar Bryant

The styles in the data analysis plotter now actually support the dashed and dotted options.

parent dfa9b0ed
......@@ -173,17 +173,17 @@ void IncrementalPlot::setStyleText(QString style)
Qt::NoBrush, QPen(QBrush(curve->symbol().pen().color()), symbolWidth), QSize(6, 6)) );
}
curve->setPen(QPen(QBrush(curve->symbol().pen().color()), curveWidth));
// Style of lines
if (style.toLower().contains("dotted")) {
curve->setStyle(QwtPlotCurve::Dots);
curve->setPen(QPen(QBrush(curve->symbol().pen().color()), curveWidth, Qt::DotLine));
} else if (style.toLower().contains("dashed")) {
curve->setPen(QPen(QBrush(curve->symbol().pen().color()), curveWidth, Qt::DashLine));
} else if (style.toLower().contains("line") || style.toLower().contains("solid")) {
curve->setStyle(QwtPlotCurve::Lines);
} else if (style.toLower().contains("dashed") || style.toLower().contains("solid")) {
curve->setStyle(QwtPlotCurve::Steps);
curve->setPen(QPen(QBrush(curve->symbol().pen().color()), curveWidth, Qt::SolidLine));
} else {
curve->setStyle(QwtPlotCurve::NoCurve);
curve->setPen(QPen(QBrush(curve->symbol().pen().color()), curveWidth, Qt::NoPen));
}
curve->setStyle(QwtPlotCurve::Lines);
}
replot();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment