MCPcopy Create free account
hub / github.com/Vector35/debugger / onDoubleClicked

Method onDoubleClicked

ui/moduleswidget.cpp:510–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508
509
510void 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
547void DebugModulesWidget::setFilter(const string& filter)

Callers

nothing calls this directly

Calls 6

rowMethod · 0.80
endAddressMethod · 0.80
getRowMethod · 0.45
addressMethod · 0.45
GetLiveViewMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected