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

Method setThrottleable

Default/Source/SourceWidget.cpp:621–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621void
622SourceWidget::setThrottleable(bool val)
623{
624 val = val && m_sourceInfo.testPermission(SUSCAN_ANALYZER_PERM_THROTTLE);
625
626 this->throttleable = val;
627 this->ui->throttleCheck->setEnabled(val);
628 if (!val)
629 this->ui->throttleCheck->setChecked(false);
630
631 this->ui->throttleSpin->setEnabled(
632 this->ui->throttleCheck->isChecked()
633 && this->ui->throttleCheck->isEnabled());
634
635 this->ui->bwSpin->setEnabled(!val);
636}
637
638unsigned int
639SourceWidget::getEffectiveRate(void) const

Callers 1

refreshUiMethod · 0.95

Calls 3

testPermissionMethod · 0.80
isEnabledMethod · 0.80
setEnabledMethod · 0.45

Tested by

no test coverage detected