MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / ShowContextMenu

Method ShowContextMenu

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

Source from the content-addressed store, hash-verified

306}
307
308void ScreenshotsPage::ShowContextMenu(const QPoint& pos)
309{
310 auto menu = ui->toolBar->createContextMenu(this, tr("Context menu"));
311
312 if (ui->listView->selectionModel()->selectedRows().size() > 1) {
313 menu->removeAction(ui->actionCopy_Image);
314 }
315
316 menu->exec(ui->listView->mapToGlobal(pos));
317 delete menu;
318}
319
320QMenu* ScreenshotsPage::createPopupMenu()
321{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected