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

Method ShowContextMenu

launcher/ui/pages/instance/ServersPage.cpp:652–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652void ServersPage::ShowContextMenu(const QPoint& pos)
653{
654 auto menu = ui->toolBar->createContextMenu(this, tr("Context menu"));
655 menu->exec(ui->serversView->mapToGlobal(pos));
656 delete menu;
657}
658
659QMenu * ServersPage::createPopupMenu()
660{

Callers

nothing calls this directly

Calls 2

createContextMenuMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected