forked from qt-creator/qt-creator
Git: Change default shortcuts for "Current Project" to Repository
Current Project is misleading. Current Repository refers to the repository of the current file, which is much more expected for "everything around" actions (Diff, Log). Task-number: QTCREATORBUG-10170 Change-Id: I252f40cd3dfd9de184a889355b59f91bb64983dd Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
6aa02fe804
commit
2c61eac1cb
@@ -776,13 +776,11 @@ GitPluginPrivate::GitPluginPrivate()
|
||||
|
||||
createProjectAction(currentProjectMenu, Tr::tr("Diff Current Project", "Avoid translating \"Diff\""),
|
||||
Tr::tr("Diff Project \"%1\"", "Avoid translating \"Diff\""),
|
||||
"Git.DiffProject", context, true, &GitPluginPrivate::diffCurrentProject,
|
||||
QKeySequence(useMacShortcuts ? Tr::tr("Meta+G,Meta+Shift+D") : Tr::tr("Alt+G,Alt+Shift+D")));
|
||||
"Git.DiffProject", context, true, &GitPluginPrivate::diffCurrentProject);
|
||||
|
||||
createProjectAction(currentProjectMenu, Tr::tr("Log Project", "Avoid translating \"Log\""),
|
||||
Tr::tr("Log Project \"%1\"", "Avoid translating \"Log\""),
|
||||
"Git.LogProject", context, true, &GitPluginPrivate::logProject,
|
||||
QKeySequence(useMacShortcuts ? Tr::tr("Meta+G,Meta+K") : Tr::tr("Alt+G,Alt+K")));
|
||||
"Git.LogProject", context, true, &GitPluginPrivate::logProject);
|
||||
|
||||
createProjectAction(currentProjectMenu, Tr::tr("Clean Project...", "Avoid translating \"Clean\""),
|
||||
Tr::tr("Clean Project \"%1\"...", "Avoid translating \"Clean\""),
|
||||
@@ -795,10 +793,12 @@ GitPluginPrivate::GitPluginPrivate()
|
||||
gitContainer->addMenu(localRepositoryMenu);
|
||||
|
||||
createRepositoryAction(localRepositoryMenu, "Diff", "Git.DiffRepository",
|
||||
context, true, &GitClient::diffRepository);
|
||||
context, true, &GitClient::diffRepository,
|
||||
QKeySequence(useMacShortcuts ? Tr::tr("Meta+G,Meta+Shift+D") : Tr::tr("Alt+G,Alt+Shift+D")));
|
||||
|
||||
createRepositoryAction(localRepositoryMenu, "Log", "Git.LogRepository",
|
||||
context, true, std::bind(&GitPluginPrivate::logRepository, this));
|
||||
context, true, std::bind(&GitPluginPrivate::logRepository, this),
|
||||
QKeySequence(useMacShortcuts ? Tr::tr("Meta+G,Meta+K") : Tr::tr("Alt+G,Alt+K")));
|
||||
|
||||
createRepositoryAction(localRepositoryMenu, "Reflog", "Git.ReflogRepository",
|
||||
context, true, std::bind(&GitPluginPrivate::reflogRepository, this));
|
||||
|
Reference in New Issue
Block a user