mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Fix the popup position of context menus for lists
Use viewport(), otherwise it does not account for the table view header for some reason.
This commit is contained in:
parent
4f825641ce
commit
55c9cb45ac
|
@ -294,7 +294,7 @@ void CpuWidget::onBPListContextMenu(QPoint pos)
|
||||||
connect(actionImport, &QAction::triggered, this, &CpuWidget::contextBPListPasteCSV);
|
connect(actionImport, &QAction::triggered, this, &CpuWidget::contextBPListPasteCSV);
|
||||||
contextMenu->addAction(actionImport);
|
contextMenu->addAction(actionImport);
|
||||||
|
|
||||||
contextMenu->popup(m_ui.breakpointList->mapToGlobal(pos));
|
contextMenu->popup(m_ui.breakpointList->viewport()->mapToGlobal(pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CpuWidget::contextBPListCopy()
|
void CpuWidget::contextBPListCopy()
|
||||||
|
@ -519,7 +519,7 @@ void CpuWidget::onThreadListContextMenu(QPoint pos)
|
||||||
});
|
});
|
||||||
contextMenu->addAction(actionExport);
|
contextMenu->addAction(actionExport);
|
||||||
|
|
||||||
contextMenu->popup(m_ui.threadList->mapToGlobal(pos));
|
contextMenu->popup(m_ui.threadList->viewport()->mapToGlobal(pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CpuWidget::onThreadListDoubleClick(const QModelIndex& index)
|
void CpuWidget::onThreadListDoubleClick(const QModelIndex& index)
|
||||||
|
@ -591,7 +591,7 @@ void CpuWidget::onFuncListContextMenu(QPoint pos)
|
||||||
m_funclistContextMenu->addAction(gotoMemory);
|
m_funclistContextMenu->addAction(gotoMemory);
|
||||||
|
|
||||||
|
|
||||||
m_funclistContextMenu->popup(m_ui.listFunctions->mapToGlobal(pos));
|
m_funclistContextMenu->popup(m_ui.listFunctions->viewport()->mapToGlobal(pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CpuWidget::onFuncListDoubleClick(QListWidgetItem* item)
|
void CpuWidget::onFuncListDoubleClick(QListWidgetItem* item)
|
||||||
|
@ -630,7 +630,7 @@ void CpuWidget::onStackListContextMenu(QPoint pos)
|
||||||
});
|
});
|
||||||
contextMenu->addAction(actionExport);
|
contextMenu->addAction(actionExport);
|
||||||
|
|
||||||
contextMenu->popup(m_ui.stackList->mapToGlobal(pos));
|
contextMenu->popup(m_ui.stackList->viewport()->mapToGlobal(pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CpuWidget::onStackListDoubleClick(const QModelIndex& index)
|
void CpuWidget::onStackListDoubleClick(const QModelIndex& index)
|
||||||
|
|
Loading…
Reference in New Issue