| 61 | QmlContextTab::~QmlContextTab() = default; |
| 62 | |
| 63 | void QmlContextTab::contextContextMenu(QPoint pos) |
| 64 | { |
| 65 | auto idx = ui->contextView->indexAt(pos); |
| 66 | ContextMenuExtension cme; |
| 67 | |
| 68 | if (!cme.discoverSourceLocation(ContextMenuExtension::GoTo, |
| 69 | idx.sibling(idx.row(), 1).data().toUrl())) |
| 70 | return; |
| 71 | |
| 72 | QMenu contextMenu; |
| 73 | cme.populateMenu(&contextMenu); |
| 74 | contextMenu.exec(ui->contextView->viewport()->mapToGlobal(pos)); |
| 75 | } |
| 76 | |
| 77 | void QmlContextTab::propertiesContextMenu(QPoint pos) |
| 78 | { |
nothing calls this directly
no test coverage detected