additional signal when traces were imported

This commit is contained in:
Jan Käberich 2021-03-11 18:34:03 +01:00
parent 7926c49974
commit f0669ab4c0
3 changed files with 18 additions and 3 deletions

View file

@ -66,5 +66,13 @@ void TraceWidgetVNA::importDialog()
prefix.append("_");
auto i = new TraceImportDialog(model, traces, prefix);
i->show();
if(filename.endsWith(".s2p")) {
// potential candidate to process via calibration/de-embedding
connect(i, &TraceImportDialog::importFinsished, [](const std::vector<Trace*> &traces) {
if(traces.size() == 4) {
// all traces imported, can calculate calibration/de-embedding
}
});
}
}
}