WIP: preparation for zero span mode

This commit is contained in:
Jan Käberich 2022-06-20 01:02:09 +02:00
parent e8560e1a67
commit 6393ae7fc3
22 changed files with 299 additions and 69 deletions

View file

@ -196,9 +196,6 @@ QPoint TraceSmithChart::dataToPixel(std::complex<double> d)
QPoint TraceSmithChart::dataToPixel(Trace::Data d)
{
if(d.x < sweep_fmin || d.x > sweep_fmax) {
return QPoint();
}
return dataToPixel(d.y);}
std::complex<double> TraceSmithChart::pixelToData(QPoint p)
@ -450,6 +447,7 @@ bool TraceSmithChart::dropSupported(Trace *t)
switch(t->outputType()) {
case Trace::DataType::Frequency:
case Trace::DataType::Power:
case Trace::DataType::TimeZeroSpan:
return true;
default:
return false;