| 146 | } |
| 147 | |
| 148 | void 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 | |
| 167 | void GitMenuManager::createProjectSubMenu() |
| 168 | { |
nothing calls this directly
no test coverage detected