gui/plotxy: implement background ticks

Improve trace readability when is displayed on xy plot.
The user is able to enable this option throughout preferences dialog.
This commit is contained in:
Kiara Navarro 2021-10-17 19:37:40 -03:00
parent ea8693566f
commit 6ef0d9e87a
No known key found for this signature in database
GPG key ID: CDEFDCA3F6E04955
6 changed files with 94 additions and 31 deletions

View file

@ -153,7 +153,7 @@ void TraceSmithChart::draw(QPainter &p) {
p.drawArc(rectangle, 0, 5760);
constexpr int Circles = 6;
pen = QPen(pref.Graphs.Color.divisions, 0.5, Qt::DashLine);
pen = QPen(pref.Graphs.Color.Ticks.divisions, 0.5, Qt::DashLine);
pen.setCosmetic(true);
p.setPen(pen);
for(int i=1;i<Circles;i++) {