From 86de69d43246cde236b10e181809e834128a2d24 Mon Sep 17 00:00:00 2001 From: Bryant Date: Tue, 4 Jun 2013 15:58:06 -0700 Subject: [PATCH] The styles in the data analysis plotter now actually support the dashed and dotted options. --- src/ui/linechart/IncrementalPlot.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ui/linechart/IncrementalPlot.cc b/src/ui/linechart/IncrementalPlot.cc index 7a99b9119..4b90fcf9f 100644 --- a/src/ui/linechart/IncrementalPlot.cc +++ b/src/ui/linechart/IncrementalPlot.cc @@ -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(); -- 2.22.0