MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / applyConfig

Method applyConfig

Default/Inspection/InspToolWidget.cpp:108–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void
109InspToolWidget::applyConfig(void)
110{
111 this->refreshInspectorCombo();
112 this->setInspectorClass(this->panelConfig->inspectorClass);
113 this->setPrecise(this->panelConfig->precise);
114 this->timeWindow->postLoadInit();
115 this->timeWindow->setPalette(this->panelConfig->palette);
116 this->timeWindow->setPaletteOffset(this->panelConfig->paletteOffset);
117 this->timeWindow->setPaletteContrast(this->panelConfig->paletteContrast);
118 this->ui->frequencySpinBox->setEditable(false);
119 this->ui->frequencySpinBox->setMinimum(-18e9);
120 this->ui->triggerSpin->setValue(
121 static_cast<qreal>(this->panelConfig->autoSquelchTriggerSNR));
122
123 this->setProperty("collapsed", this->panelConfig->collapsed);
124
125 // Track changes now
126 connect(
127 this->timeWindow,
128 SIGNAL(configChanged(void)),
129 this,
130 SLOT(onTimeWindowConfigChanged(void)));
131}
132
133bool
134InspToolWidget::event(QEvent *event)

Callers

nothing calls this directly

Calls 8

refreshInspectorComboMethod · 0.95
setInspectorClassMethod · 0.95
setPreciseMethod · 0.95
setValueMethod · 0.80
postLoadInitMethod · 0.45
setPaletteMethod · 0.45
setPaletteOffsetMethod · 0.45
setPaletteContrastMethod · 0.45

Tested by

no test coverage detected