MCPcopy Create free account
hub / github.com/clementgallet/libTAS / slotAdd

Method slotAdd

src/program/ui/RamSearchWindow.cpp:449–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void RamSearchWindow::slotAdd()
450{
451 const QModelIndex index = ramSearchView->selectionModel()->currentIndex();
452 ramSearchView->selectionModel()->clear();
453
454 /* If no watch was selected, return */
455 if (!index.isValid()) {
456 QMessageBox::critical(nullptr, "Error", QString("You must select an address to add a watch"));
457 return;
458 }
459
460 int row = index.row();
461
462 /* Fill the watch edit window with parameters from the selected watch */
463 ramWatchWindow->ramWatchView->ensureEditWindow()->fill(ramSearchModel->address(row), typeBox->currentIndex());
464 ramWatchWindow->ramWatchView->slotAdd();
465}
466
467void RamSearchWindow::slotHex()
468{

Callers

nothing calls this directly

Calls 5

fillMethod · 0.80
ensureEditWindowMethod · 0.80
clearMethod · 0.45
isValidMethod · 0.45
addressMethod · 0.45

Tested by

no test coverage detected