| 300 | } |
| 301 | |
| 302 | void MainWindow::syncFlexControlDialog() |
| 303 | { |
| 304 | if (!m_flexControlDialog) |
| 305 | return; |
| 306 | |
| 307 | auto* s = activeSlice(); |
| 308 | m_flexControlDialog->setSlice(s); |
| 309 | #ifdef HAVE_SERIALPORT |
| 310 | m_flexControlDialog->setPhysicalReady( |
| 311 | m_flexControlConnected, |
| 312 | m_flexControlConnected && m_flexControl ? m_flexControl->portName() : QString()); |
| 313 | #else |
| 314 | m_flexControlDialog->setPhysicalReady(false); |
| 315 | #endif |
| 316 | int stepHz = 100; |
| 317 | if (auto* sw = spectrumForSlice(s)) |
| 318 | stepHz = sw->stepSize(); |
| 319 | else if (s && s->stepHz() > 0) |
| 320 | stepHz = s->stepHz(); |
| 321 | m_flexControlDialog->setStepSize(stepHz); |
| 322 | m_flexControlDialog->setActiveAuxButton(m_flexActiveLedButton); |
| 323 | } |
| 324 | |
| 325 | void MainWindow::syncFlexControlIndicatorForSettings() |
| 326 | { |
nothing calls this directly
no test coverage detected