mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-09 00:13:41 +00:00
WIP: preparation for zero span mode
This commit is contained in:
parent
e8560e1a67
commit
6393ae7fc3
22 changed files with 299 additions and 69 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue