MCPcopy Create free account
hub / github.com/MultiMC/Launcher / ShowContextMenu

Method ShowContextMenu

launcher/ui/pages/instance/ScreenshotsPage.cpp:278–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278void ScreenshotsPage::ShowContextMenu(const QPoint& pos)
279{
280 auto menu = ui->toolBar->createContextMenu(this, tr("Context menu"));
281
282 if (ui->listView->selectionModel()->selectedRows().size() > 1) {
283 menu->removeAction( ui->actionCopy_Image );
284 }
285
286 menu->exec(ui->listView->mapToGlobal(pos));
287 delete menu;
288}
289
290QMenu * ScreenshotsPage::createPopupMenu()
291{

Callers

nothing calls this directly

Calls 4

createContextMenuMethod · 0.80
selectedRowsMethod · 0.80
sizeMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected