forked from qt-creator/qt-creator
ProjectExplorer: Set a description for the "Stop" action
"Stop" in the Keyboard Setup Dialog is not really helpful. Say "Stop Running Program" instead. Change-Id: I23f590b6faf64a9a680295c3ccf77231b4f5cd21 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -176,10 +176,11 @@ AppOutputPane::AppOutputPane() :
|
|||||||
|
|
||||||
// Stop
|
// Stop
|
||||||
m_stopAction->setIcon(Utils::Icons::STOP_SMALL_TOOLBAR.icon());
|
m_stopAction->setIcon(Utils::Icons::STOP_SMALL_TOOLBAR.icon());
|
||||||
m_stopAction->setToolTip(tr("Stop"));
|
m_stopAction->setToolTip(tr("Stop Running Program"));
|
||||||
m_stopAction->setEnabled(false);
|
m_stopAction->setEnabled(false);
|
||||||
|
|
||||||
Core::Command *cmd = Core::ActionManager::registerAction(m_stopAction, Constants::STOP);
|
Core::Command *cmd = Core::ActionManager::registerAction(m_stopAction, Constants::STOP);
|
||||||
|
cmd->setDescription(m_stopAction->toolTip());
|
||||||
|
|
||||||
m_stopButton->setDefaultAction(cmd->action());
|
m_stopButton->setDefaultAction(cmd->action());
|
||||||
m_stopButton->setAutoRaise(true);
|
m_stopButton->setAutoRaise(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user