| 619 | } |
| 620 | |
| 621 | void |
| 622 | SourceWidget::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 | |
| 638 | unsigned int |
| 639 | SourceWidget::getEffectiveRate(void) const |
no test coverage detected