mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
Display marker data on graphs if enabled
This commit is contained in:
parent
ee82237993
commit
93f5eba6a8
8 changed files with 86 additions and 14 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue