| 387 | } |
| 388 | |
| 389 | void MainWindow::setDebugLcdDma(bool state) { |
| 390 | ui->checkDebugDma->setChecked(state); |
| 391 | m_config->setValue(SETTING_DEBUGGER_IGNORE_DMA, !state); |
| 392 | bool ok; |
| 393 | int64_t cycleCounter = ui->cycleView->text().toLongLong(&ok); |
| 394 | if (!ok) |
| 395 | cycleCounter = debug.totalCycles - (!state ? debug.dmaCycles : 0); |
| 396 | else if (!state) |
| 397 | cycleCounter -= debug.dmaCycles; |
| 398 | else |
| 399 | cycleCounter += debug.dmaCycles; |
| 400 | ui->cycleView->setText(QString::number(cycleCounter)); |
| 401 | m_ignoreDmaCycles = !state; |
| 402 | } |
| 403 | |
| 404 | void MainWindow::setFocusSetting(bool state) { |
| 405 | ui->checkFocus->setChecked(state); |
nothing calls this directly
no outgoing calls
no test coverage detected