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

Method updateTimeSpans

Default/FFT/FFTWidget.cpp:444–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void
445FFTWidget::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
464void
465FFTWidget::addFftSize(unsigned int size)

Callers 1

setTimeSpanMethod · 0.95

Calls 4

secondsToStringFunction · 0.85
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected