mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 07:23:43 +00:00
gui: replot active mode when settings plot are updated
This commit is contained in:
parent
b7a7626e3d
commit
d6cecf2603
8 changed files with 50 additions and 2 deletions
|
|
@ -75,6 +75,7 @@ VNA::VNA(AppWindow *window)
|
|||
|
||||
auto tracesmith1 = new TraceSmithChart(traceModel);
|
||||
tracesmith1->enableTrace(tS11, true);
|
||||
|
||||
auto tracesmith2 = new TraceSmithChart(traceModel);
|
||||
tracesmith2->enableTrace(tS22, true);
|
||||
|
||||
|
|
@ -83,6 +84,12 @@ VNA::VNA(AppWindow *window)
|
|||
auto traceXY2 = new TraceXYPlot(traceModel);
|
||||
traceXY2->enableTrace(tS21, true);
|
||||
|
||||
connect(this, &VNA::graphColorsChanged, [=](){
|
||||
for (auto p : TracePlot::getPlots()) {
|
||||
p->updateGraphColors();
|
||||
}
|
||||
});
|
||||
|
||||
connect(&traceModel, &TraceModel::requiredExcitation, this, &VNA::ExcitationRequired);
|
||||
|
||||
central->splitVertically();
|
||||
|
|
@ -1117,3 +1124,8 @@ void VNA::EnableDeembedding(bool enable)
|
|||
enableDeembeddingAction->setChecked(enable);
|
||||
enableDeembeddingAction->blockSignals(false);
|
||||
}
|
||||
|
||||
void VNA::updateGraphColors()
|
||||
{
|
||||
emit graphColorsChanged();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue