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

Method updateOptionButtons

src/gui/FlexControlDialog.cpp:1659–1680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1657}
1658
1659void FlexControlDialog::updateOptionButtons()
1660{
1661 if (m_externalSpinButton) {
1662 const QSignalBlocker blocker(m_externalSpinButton);
1663 m_externalSpinButton->setChecked(externalSpinEnabled());
1664 repolish(m_externalSpinButton);
1665 }
1666 if (m_reverseButton) {
1667 const bool reversed =
1668 AppSettings::instance().value("FlexControlInvertDir", "False").toString() == "True";
1669 const QSignalBlocker blocker(m_reverseButton);
1670 m_reverseButton->setChecked(reversed);
1671 repolish(m_reverseButton);
1672 }
1673 if (m_compactButton) {
1674 const bool compact = AppSettings::instance()
1675 .value("FlexControlCompactMode", "False").toString() == "True";
1676 const QSignalBlocker blocker(m_compactButton);
1677 m_compactButton->setChecked(compact);
1678 repolish(m_compactButton);
1679 }
1680}
1681
1682void FlexControlDialog::updateCompactMode()
1683{

Callers

nothing calls this directly

Calls 3

repolishFunction · 0.85
toStringMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected