MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / contextMenuEvent

Method contextMenuEvent

src/plugins/project/mainframe/projecttree.cpp:442–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void ProjectTree::contextMenuEvent(QContextMenuEvent *event)
443{
444 DTreeView::contextMenuEvent(event);
445 QModelIndex index = indexAt(event->pos());
446 selectionModel()->select(index, QItemSelectionModel::SelectCurrent);
447 itemMenuRequest(d->itemModel->itemFromIndex(index), event);
448}
449
450void ProjectTree::mousePressEvent(QMouseEvent *event)
451{

Callers

nothing calls this directly

Calls 1

selectMethod · 0.80

Tested by

no test coverage detected