| 89 | } |
| 90 | |
| 91 | void EventMonitorWidget::eventTreeContextMenu(QPoint pos) |
| 92 | { |
| 93 | auto index = ui->eventTree->indexAt(pos); |
| 94 | if (!index.isValid()) |
| 95 | return; |
| 96 | index = index.sibling(index.row(), EventModelColumn::Receiver); |
| 97 | |
| 98 | const auto objectId = index.data(EventModelRole::ReceiverIdRole).value<ObjectId>(); |
| 99 | if (objectId.isNull()) |
| 100 | return; |
| 101 | |
| 102 | QMenu menu; |
| 103 | ContextMenuExtension ext(objectId); |
| 104 | ext.populateMenu(&menu); |
| 105 | menu.exec(ui->eventTree->viewport()->mapToGlobal(pos)); |
| 106 | } |
| 107 | |
| 108 | void EventMonitorWidget::eventInspectorContextMenu(QPoint pos) |
| 109 | { |
nothing calls this directly
no test coverage detected