MCPcopy Create free account
hub / github.com/KDAB/GammaRay / contextContextMenu

Method contextContextMenu

plugins/qmlsupport/qmlcontexttab.cpp:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61QmlContextTab::~QmlContextTab() = default;
62
63void 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
77void QmlContextTab::propertiesContextMenu(QPoint pos)
78{

Callers

nothing calls this directly

Calls 4

rowMethod · 0.80
populateMenuMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected