CMake: Remove ActionBuilder::setCommandDescription() calls

... where the default implementation via stripAccellerator(action()->text())
would yield the same result.

Change-Id: Ie921863d472e0592a8c97830d67873ccfb1b57da
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-01-08 14:53:19 +01:00
parent 9ff7ea3980
commit e65dc8007b

View File

@@ -117,7 +117,6 @@ CMakeManager::CMakeManager()
.setIcon(ProjectExplorer::Icons::CMAKE_LOGO.icon())
.setText(Tr::tr("CMake Profiler"))
.bindContextAction(&m_cmakeProfilerAction)
.setCommandDescription(m_cmakeProfilerAction->text())
.addToContainer(Debugger::Constants::M_DEBUG_ANALYZER,
Debugger::Constants::G_ANALYZER_TOOLS,
false)
@@ -136,7 +135,6 @@ CMakeManager::CMakeManager()
.setText(Tr::tr("Start CMake Debugging"))
.setIcon(ProjectExplorer::Icons::CMAKE_LOGO.icon())
.bindContextAction(&m_cmakeDebuggerAction)
.setCommandDescription(m_cmakeDebuggerAction->text())
.addToContainer(PEC::M_DEBUG_STARTDEBUGGING, Constants::CMAKE_DEBUGGING_GROUP)
.addOnTriggered(this, [] {
ProjectExplorerPlugin::runStartupProject(PEC::DAP_CMAKE_DEBUG_RUN_MODE,