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

Method onBandwidthChanged

Default/Source/SourceWidget.cpp:1183–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181}
1182
1183void
1184SourceWidget::onBandwidthChanged(void)
1185{
1186 float bandwidth = SCAST(float, this->ui->bwSpin->value());
1187
1188 if (this->profile != nullptr)
1189 this->profile->setBandwidth(bandwidth);
1190
1191 if (m_analyzer != nullptr) {
1192 try {
1193 m_analyzer->setBandwidth(bandwidth);
1194 } catch (Suscan::Exception &) {
1195 (void) QMessageBox::critical(
1196 this,
1197 "SigDigger error",
1198 "Source does not allow setting the bandwidth",
1199 QMessageBox::Ok);
1200 }
1201 }
1202}
1203
1204void
1205SourceWidget::onPPMChanged(void)

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
setBandwidthMethod · 0.45

Tested by

no test coverage detected