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

Method createFileSubMenu

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

Source from the content-addressed store, hash-verified

146}
147
148void GitMenuManager::createFileSubMenu()
149{
150 auto mCurFile = ActionManager::instance()->actionContainer(M_GIT_FILE);
151 auto fileLogAct = new QAction(this);
152 auto cmd = registerShortcut(fileLogAct, A_GIT_LOG_FILE, tr("Git Log"), QKeySequence("Alt+G,Alt+L"));
153 mCurFile->addAction(cmd);
154 connect(fileLogAct, &QAction::triggered, this, std::bind(&GitMenuManager::actionHandler, this, cmd, GitLog));
155
156 auto fileBlameAct = new QAction(this);
157 cmd = registerShortcut(fileBlameAct, A_GIT_BLAME_FILE, tr("Git Blame"), QKeySequence("Alt+G,Alt+B"));
158 mCurFile->addAction(cmd);
159 connect(fileBlameAct, &QAction::triggered, this, std::bind(&GitMenuManager::actionHandler, this, cmd, GitBlame));
160
161 auto fileDiffAct = new QAction(this);
162 cmd = registerShortcut(fileDiffAct, A_GIT_DIFF_FILE, tr("Git Diff"), QKeySequence("Alt+G,Alt+D"));
163 mCurFile->addAction(cmd);
164 connect(fileDiffAct, &QAction::triggered, this, std::bind(&GitMenuManager::actionHandler, this, cmd, GitDiff));
165}
166
167void GitMenuManager::createProjectSubMenu()
168{

Callers

nothing calls this directly

Calls 4

QKeySequenceClass · 0.85
connectFunction · 0.85
actionContainerMethod · 0.80
addActionMethod · 0.45

Tested by

no test coverage detected