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

@ -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) {