MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / onCustomContextMenuRequested

Method onCustomContextMenuRequested

src/pluginlistview.cpp:247–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void PluginListView::onCustomContextMenuRequested(const QPoint& pos)
248{
249 try {
250 PluginListContextMenu menu(indexViewToModel(indexAt(pos)), *m_core, this);
251 connect(&menu, &PluginListContextMenu::openModInformation, [=](auto&& modIndex) {
252 m_modActions->displayModInformation(modIndex);
253 });
254 menu.exec(viewport()->mapToGlobal(pos));
255 } catch (const std::exception& e) {
256 reportError(tr("Exception: ").arg(e.what()));
257 } catch (...) {
258 reportError(tr("Unknown exception"));
259 }
260}
261
262void PluginListView::onDoubleClicked(const QModelIndex& index)
263{

Callers

nothing calls this directly

Calls 4

indexViewToModelFunction · 0.85
displayModInformationMethod · 0.45
execMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected