| 508 | |
| 509 | |
| 510 | void DebugModulesWidget::onDoubleClicked() |
| 511 | { |
| 512 | QModelIndexList sel = selectionModel()->selectedIndexes(); |
| 513 | if (sel.empty()) |
| 514 | return; |
| 515 | |
| 516 | if (sel[0].column() != DebugModulesListModel::AddressColumn |
| 517 | && sel[0].column() != DebugModulesListModel::EndAddressColumn) |
| 518 | return; |
| 519 | |
| 520 | auto sourceIndex = m_filter->mapToSource(sel[0]); |
| 521 | if (!sourceIndex.isValid()) |
| 522 | return; |
| 523 | |
| 524 | auto module = m_model->getRow(sourceIndex.row()); |
| 525 | uint64_t address; |
| 526 | |
| 527 | if (sourceIndex.column() == DebugModulesListModel::AddressColumn) |
| 528 | address = module.address(); |
| 529 | else |
| 530 | address = module.endAddress(); |
| 531 | |
| 532 | UIContext* context = UIContext::contextForWidget(this); |
| 533 | if (!context) |
| 534 | return; |
| 535 | |
| 536 | ViewFrame* frame = context->getCurrentViewFrame(); |
| 537 | if (!frame) |
| 538 | return; |
| 539 | |
| 540 | if (m_controller->GetLiveView()) |
| 541 | frame->navigate(m_controller->GetLiveView(), address, true, true); |
| 542 | else |
| 543 | frame->navigate(m_controller->GetData(), address, true, true); |
| 544 | }; |
| 545 | |
| 546 | |
| 547 | void DebugModulesWidget::setFilter(const string& filter) |
nothing calls this directly
no test coverage detected