| 265 | } |
| 266 | |
| 267 | void |
| 268 | MainSpectrum::refreshUi(void) |
| 269 | { |
| 270 | QString modeText = " Capture mode: "; |
| 271 | |
| 272 | switch (this->mode) { |
| 273 | case UNAVAILABLE: |
| 274 | modeText += "N/A"; |
| 275 | break; |
| 276 | |
| 277 | case CAPTURE: |
| 278 | modeText += "LIVE"; |
| 279 | break; |
| 280 | |
| 281 | case REPLAY: |
| 282 | modeText += "REPLAY"; |
| 283 | break; |
| 284 | } |
| 285 | |
| 286 | this->ui->captureModeLabel->setText(modeText); |
| 287 | |
| 288 | if (this->throttling) |
| 289 | this->ui->throttlingLabel->setText(" Throttling: ON"); |
| 290 | else |
| 291 | this->ui->throttlingLabel->setText(" Throttling: OFF"); |
| 292 | } |
| 293 | |
| 294 | void |
| 295 | MainSpectrum::setThrottling(bool value) |
no outgoing calls
no test coverage detected