MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / ShowContextMenu

Method ShowContextMenu

launcher/ui/pages/instance/ExternalResourcesPage.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ExternalResourcesPage::ShowContextMenu(const QPoint& pos)
64{
65 auto menu = ui->actionsToolbar->createContextMenu(this, tr("Context menu"));
66 if(menu->actions().contains(ui->actionUpdateItem)) {
67 menu->insertAction(ui->actionUpdateItem, ui->actionDisableUpdates);
68 }
69 menu->exec(ui->treeView->mapToGlobal(pos));
70 delete menu;
71}
72
73void ExternalResourcesPage::openedImpl()
74{

Callers

nothing calls this directly

Calls 3

createContextMenuMethod · 0.80
containsMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected