| 540 | |
| 541 | |
| 542 | void DebugRegistersWidget::setToZero() |
| 543 | { |
| 544 | QModelIndexList sel = selectionModel()->selectedIndexes(); |
| 545 | if (sel.empty()) |
| 546 | return; |
| 547 | |
| 548 | auto sourceIndex = m_filter->mapToSource(sel[0]); |
| 549 | if (!sourceIndex.isValid()) |
| 550 | return; |
| 551 | |
| 552 | auto reg = m_model->getRow(sourceIndex.row()); |
| 553 | m_controller->SetRegisterValue(reg.name(), 0); |
| 554 | } |
| 555 | |
| 556 | |
| 557 | void DebugRegistersWidget::jump() |
nothing calls this directly
no test coverage detected