| 67 | } |
| 68 | |
| 69 | FACTab::FACTab(QWidget *parent) : |
| 70 | QWidget(parent), |
| 71 | ui(new Ui::FACTab) |
| 72 | { |
| 73 | unsigned int i; |
| 74 | |
| 75 | ui->setupUi(this); |
| 76 | |
| 77 | this->connectAll(); |
| 78 | |
| 79 | for (i = 9; i < 20; ++i) |
| 80 | this->ui->facSizeCombo->addItem( |
| 81 | QString::number(1 << i), |
| 82 | QVariant::fromValue<int>(1 << i)); |
| 83 | |
| 84 | this->ui->facSizeCombo->setCurrentIndex(16 - 9); |
| 85 | |
| 86 | this->ui->facWaveform->setRealComponent(true); |
| 87 | this->ui->facWaveform->setEnableFeedback(false); |
| 88 | this->onUnitsChanged(); |
| 89 | |
| 90 | this->onChangeFACSize(); |
| 91 | this->onAdjustAveraging(); |
| 92 | this->onChangePeakDetect(); |
| 93 | |
| 94 | this->ui->facWaveform->zoomVertical( |
| 95 | static_cast<qreal>(0), |
| 96 | static_cast<qreal>(1)); |
| 97 | |
| 98 | gettimeofday(&this->lastRefresh, nullptr); |
| 99 | } |
| 100 | |
| 101 | FACTab::~FACTab() |
| 102 | { |
nothing calls this directly
no test coverage detected