MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / setFlexControlConnectionStatus

Method setFlexControlConnectionStatus

src/gui/RadioSetupDialog.cpp:5540–5558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5538}
5539
5540void RadioSetupDialog::setFlexControlConnectionStatus(bool connected, const QString& port)
5541{
5542 if (m_flexControlStatusLabel) {
5543 if (connected) {
5544 const QString displayPort = port.isEmpty()
5545 ? AppSettings::instance().value("FlexControlPort").toString()
5546 : port;
5547 m_flexControlStatusLabel->setText(QString("Connected (%1)").arg(displayPort));
5548 AetherSDR::ThemeManager::instance().applyStyleSheet(m_flexControlStatusLabel, "QLabel { color: {{color.accent.success}}; font-size: 11px; }");
5549 } else {
5550 m_flexControlStatusLabel->setText("Not detected");
5551 AetherSDR::ThemeManager::instance().applyStyleSheet(m_flexControlStatusLabel, "QLabel { color: {{color.text.label}}; font-size: 11px; }");
5552 }
5553 }
5554 if (m_flexControlCloseButton)
5555 m_flexControlCloseButton->setEnabled(connected);
5556 if (m_flexControlDetectButton)
5557 m_flexControlDetectButton->setEnabled(!connected);
5558}
5559
5560// ── UI Enhancements tab ───────────────────────────────────────────────────────
5561

Callers 3

showFlexControlDialogMethod · 0.80

Calls 5

applyStyleSheetMethod · 0.80
isEmptyMethod · 0.45
toStringMethod · 0.45
valueMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected