| 245 | } |
| 246 | |
| 247 | void 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 | |
| 262 | void PluginListView::onDoubleClicked(const QModelIndex& index) |
| 263 | { |
nothing calls this directly
no test coverage detected