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

Method registerShortcut

src/plugins/git/utils/gitmenumanager.cpp:183–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183Command *GitMenuManager::registerShortcut(QAction *act, const QString &id, const QString &description, const QKeySequence &shortCut)
184{
185 auto cmd = ActionManager::instance()->registerAction(act, id);
186 cmd->setDefaultKeySequence(shortCut);
187 cmd->setDescription(description);
188 return cmd;
189}

Callers

nothing calls this directly

Calls 3

registerActionMethod · 0.80
setDefaultKeySequenceMethod · 0.80
setDescriptionMethod · 0.45

Tested by

no test coverage detected