From 4adfc76ec9e76da6c303f6c10c00727500ff5fd6 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 14 Jan 2021 16:19:29 +0100 Subject: [PATCH] Add "r" as mnemonic for Build > Build for Run Configuration Similar to f1881777b714ea6d7a8d10081668129ab4028b12, this change makes it possible to build a specific sub-project using only the keyboard. For CMake projects, this is a workaround for QTCREATORBUG-25231. If that bug is ever fixed, this mnemonic still remains useful, especially as it has a different meaning than Build Subproject: it builds for the current run target as opposed to the sub-project associated with the current file. Task-number: QTCREATORBUG-25231 Change-Id: Iceb25a1c5c3242db3331c28ff0e4ca908dc04890 Reviewed-by: Cristian Adam Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/projectexplorer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index f2d3bbfa211..90666ef946e 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1189,7 +1189,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er // build for run config dd->m_buildForRunConfigAction = new Utils::ParameterAction( - tr("Build for Run Configuration"), tr("Build for Run Configuration \"%1\""), + tr("Build for &Run Configuration"), tr("Build for &Run Configuration \"%1\""), Utils::ParameterAction::EnabledWithParameter, this); dd->m_buildForRunConfigAction->setIcon(buildIcon); cmd = ActionManager::registerAction(dd->m_buildForRunConfigAction,