| 442 | } |
| 443 | |
| 444 | void |
| 445 | FFTWidget::updateTimeSpans(void) |
| 446 | { |
| 447 | int index = 0; |
| 448 | this->ui->timeSpanCombo->clear(); |
| 449 | |
| 450 | for (auto p = this->timeSpans.begin(); p != this->timeSpans.end(); ++p) { |
| 451 | if (*p == 0) { |
| 452 | this->ui->timeSpanCombo->addItem("Auto"); |
| 453 | } else { |
| 454 | this->ui->timeSpanCombo->addItem(secondsToString(*p)); |
| 455 | } |
| 456 | |
| 457 | if (*p == this->panelConfig->timeSpan) |
| 458 | this->ui->timeSpanCombo->setCurrentIndex(index); |
| 459 | |
| 460 | ++index; |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | void |
| 465 | FFTWidget::addFftSize(unsigned int size) |
no test coverage detected