| 684 | |
| 685 | |
| 686 | void DebugRegistersWidget::jumpInNewPaneInternal(const QModelIndex &index) |
| 687 | { |
| 688 | if (!index.isValid()) |
| 689 | return; |
| 690 | |
| 691 | auto sourceIndex = m_filter->mapToSource(index); |
| 692 | if (!sourceIndex.isValid()) |
| 693 | return; |
| 694 | |
| 695 | auto reg = m_model->getRow(sourceIndex.row()); |
| 696 | uint64_t value = reg.value(); |
| 697 | |
| 698 | ViewFrame* frame = ViewFrame::viewFrameForWidget(this); |
| 699 | auto* currentWindow = UIContext::contextForWidget(m_view); |
| 700 | if (frame && currentWindow) |
| 701 | { |
| 702 | auto* splitPaneWidget = qobject_cast<SplitPaneWidget*>(currentWindow->getCurrentTab()); |
| 703 | if (!splitPaneWidget) |
| 704 | return; |
| 705 | |
| 706 | Qt::Orientation defaultSplitDirection = splitPaneWidget->defaultSplitDirection(); |
| 707 | splitPaneWidget->splitCurrentPane(defaultSplitDirection); |
| 708 | |
| 709 | ViewPane* newPane = splitPaneWidget->currentViewPane(); |
| 710 | |
| 711 | if (!newPane) |
| 712 | return; |
| 713 | |
| 714 | ViewFrame* newViewFrame = newPane->viewFrame(); |
| 715 | if (newViewFrame) |
| 716 | { |
| 717 | newViewFrame->disableSync(); |
| 718 | newViewFrame->navigate(m_controller->GetLiveView(), value); |
| 719 | } |
| 720 | } |
| 721 | } |
| 722 | |
| 723 | |
| 724 | void DebugRegistersWidget::mousePressEvent(QMouseEvent *event) |
nothing calls this directly
no test coverage detected