| 487 | } |
| 488 | |
| 489 | void MemScanWidget::onNextScan() |
| 490 | { |
| 491 | Common::MemOperationReturnCode scannerReturn = |
| 492 | m_memScanner->nextScan(getSelectedFilter(), m_txbSearchTerm1->text().toStdString(), |
| 493 | m_txbSearchTerm2->text().toStdString()); |
| 494 | if (scannerReturn != Common::MemOperationReturnCode::OK) |
| 495 | { |
| 496 | handleScannerErrors(scannerReturn); |
| 497 | } |
| 498 | else |
| 499 | { |
| 500 | const size_t resultsFound{m_memScanner->getResultCount()}; |
| 501 | m_lblResultCount->setText(tr("%1 result(s) found", "", static_cast<int>(resultsFound)) |
| 502 | .arg(QString::number(resultsFound))); |
| 503 | if (resultsFound <= m_showThreshold && resultsFound != 0) |
| 504 | { |
| 505 | m_btnAddAll->setEnabled(true); |
| 506 | m_btnAddSelection->setEnabled(true); |
| 507 | m_btnRemoveSelection->setEnabled(true); |
| 508 | } |
| 509 | |
| 510 | m_btnUndoScan->setEnabled(m_memScanner->hasUndo()); |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | void MemScanWidget::onUndoScan() |
| 515 | { |
nothing calls this directly
no test coverage detected