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

Method processContextMenuEvent

src/plugins/chat/eventreceiver.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void ChatReceiver::processContextMenuEvent(const dpf::Event &event)
47{
48 QMenu *contextMenu = event.property("menu").value<QMenu *>();
49 if (!contextMenu)
50 return;
51
52 contextMenu->addMenu(Copilot::instance()->getMenu());
53}
54
55void ChatReceiver::processSelectionChangedEvent(const dpf::Event &event)
56{

Callers

nothing calls this directly

Calls 3

getMenuMethod · 0.80
propertyMethod · 0.45
addMenuMethod · 0.45

Tested by

no test coverage detected