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

Method ShowContextMenu

launcher/ui/pages/instance/WorldListPage.cpp:129–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void WorldListPage::ShowContextMenu(const QPoint& pos)
130{
131 auto menu = ui->toolBar->createContextMenu(this, tr("Context menu"));
132 menu->exec(ui->worldTreeView->mapToGlobal(pos));
133 delete menu;
134}
135
136QMenu * WorldListPage::createPopupMenu()
137{

Callers

nothing calls this directly

Calls 2

createContextMenuMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected