Add preference option for trace line width

This commit is contained in:
Jan Käberich 2021-12-05 18:26:32 +01:00
parent 45cf2200b8
commit aba0650d25
5 changed files with 23 additions and 4 deletions

View file

@ -186,7 +186,7 @@ void TraceSmithChart::draw(QPainter &p) {
// trace marked invisible
continue;
}
pen = QPen(trace->color(), 1);
pen = QPen(trace->color(), pref.Graphs.lineWidth);
pen.setCosmetic(true);
p.setPen(pen);
int nPoints = trace->size();

View file

@ -457,7 +457,7 @@ void TraceXYPlot::draw(QPainter &p)
if(!t->isVisible()) {
continue;
}
pen = QPen(t->color(), 1);
pen = QPen(t->color(), pref.Graphs.lineWidth);
pen.setCosmetic(true);
if(i == 1) {
pen.setStyle(Qt::DotLine);