Display marker data on graphs if enabled

This commit is contained in:
Jan Käberich 2021-05-14 16:18:43 +02:00
parent ee82237993
commit 93f5eba6a8
8 changed files with 86 additions and 14 deletions

View file

@ -115,6 +115,20 @@ double TraceSmithChart::nearestTracePoint(Trace *t, QPoint pixel)
return t->sample(closestIndex).x;
}
bool TraceSmithChart::xCoordinateVisible(double x)
{
if(limitToSpan) {
if(x >= sweep_fmin && x <= sweep_fmax) {
return true;
} else {
return false;
}
} else {
// complete traces visible
return true;
}
}
void TraceSmithChart::draw(QPainter &p) {
auto pref = Preferences::getInstance();