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

Method ShowContextMenu

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

Source from the content-addressed store, hash-verified

318}
319
320void ScreenshotsPage::ShowContextMenu(const QPoint& pos)
321{
322 auto menu = ui->toolBar->createContextMenu(this, tr("Context menu"));
323
324 if (ui->listView->selectionModel()->selectedRows().size() > 1) {
325 menu->removeAction( ui->actionCopy_Image );
326 }
327
328 menu->exec(ui->listView->mapToGlobal(pos));
329 delete menu;
330}
331
332QMenu * ScreenshotsPage::createPopupMenu()
333{

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