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

Method showContextMenu

launcher/ui/pages/instance/VersionPage.cpp:179–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void VersionPage::showContextMenu(const QPoint& pos)
180{
181 auto menu = ui->toolBar->createContextMenu(this, tr("Context menu"));
182 menu->exec(ui->packageView->mapToGlobal(pos));
183 delete menu;
184}
185
186void VersionPage::packageCurrent(const QModelIndex &current, const QModelIndex &previous)
187{

Callers

nothing calls this directly

Calls 2

createContextMenuMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected