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
|
|
@ -930,6 +930,15 @@ double TraceXYPlot::nearestTracePoint(Trace *t, QPoint pixel)
|
|||
return closestXpos;
|
||||
}
|
||||
|
||||
bool TraceXYPlot::xCoordinateVisible(double x)
|
||||
{
|
||||
if(x >= min(XAxis.rangeMin, XAxis.rangeMax) && x <= max(XAxis.rangeMax, XAxis.rangeMin)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void TraceXYPlot::traceDropped(Trace *t, QPoint position)
|
||||
{
|
||||
if(t->outputType() == Trace::DataType::Frequency && XAxis.type != XAxisType::Frequency) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue