| 1022 | } |
| 1023 | |
| 1024 | unsigned int |
| 1025 | ProfileConfigTab::getSelectedSampleRate(void) const |
| 1026 | { |
| 1027 | unsigned int sampRate = 0; |
| 1028 | |
| 1029 | if (this->ui->sampRateStack->currentIndex() == 0) { |
| 1030 | // Index 0: Sample Rate Combo |
| 1031 | if (this->ui->sampleRateCombo->currentIndex() != -1) { |
| 1032 | qreal selectedValue = |
| 1033 | this->ui->sampleRateCombo->currentData().value<qreal>(); |
| 1034 | sampRate = static_cast<unsigned>(selectedValue); |
| 1035 | } |
| 1036 | } else { |
| 1037 | // Index 1: Sample Rate Spin |
| 1038 | sampRate = static_cast<unsigned>( |
| 1039 | this->ui->sampleRateSpinBox->value()); |
| 1040 | } |
| 1041 | |
| 1042 | return sampRate; |
| 1043 | } |
| 1044 | |
| 1045 | void |
| 1046 | ProfileConfigTab::setSelectedSampleRate(unsigned int rate) |
no test coverage detected