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

Method handleContextMenuEvent

src/plugins/git/transceiver/gitreceiver.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void GitReceiver::handleContextMenuEvent(const dpf::Event &event)
53{
54 auto editorMenu = event.property("menu").value<QMenu *>();
55 if (editorMenu)
56 editorMenu->addAction(GitMenuManager::instance()->gitAction());
57}
58
59void GitReceiver::handleSwitchedFileEvent(const dpf::Event &event)
60{

Callers

nothing calls this directly

Calls 3

gitActionMethod · 0.80
propertyMethod · 0.45
addActionMethod · 0.45

Tested by

no test coverage detected