forked from qt-creator/qt-creator
Debugger: Move some constants to more local scopes
Change-Id: I1b8b7ca594e4425c272ea092d915482f596698b8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -50,7 +50,6 @@ const char G_START_QML[] = "Debugger.Group.Start.Qml";
|
||||
const char INTERRUPT[] = "Debugger.Interrupt";
|
||||
const char CONTINUE[] = "Debugger.Continue";
|
||||
const char STOP[] = "Debugger.Stop";
|
||||
const char HIDDEN_STOP[] = "Debugger.HiddenStop";
|
||||
const char ABORT[] = "Debugger.Abort";
|
||||
const char STEP[] = "Debugger.StepLine";
|
||||
const char STEPOUT[] = "Debugger.StepOut";
|
||||
@@ -59,11 +58,8 @@ const char RUNTOLINE[] = "Debugger.RunToLine";
|
||||
const char RUNTOSELECTEDFUNCTION[] = "Debugger.RunToSelectedFunction";
|
||||
const char JUMPTOLINE[] = "Debugger.JumpToLine";
|
||||
const char RETURNFROMFUNCTION[] = "Debugger.ReturnFromFunction";
|
||||
const char START_AND_BREAK_ON_MAIN[]= "Debugger.StartAndBreakOnMain";
|
||||
const char REVERSE[] = "Debugger.ReverseDirection";
|
||||
const char RESET[] = "Debugger.Reset";
|
||||
const char DETACH[] = "Debugger.Detach";
|
||||
const char OPERATE_BY_INSTRUCTION[] = "Debugger.OperateByInstruction";
|
||||
const char QML_SHOW_APP_ON_TOP[] = "Debugger.QmlShowAppOnTop";
|
||||
const char QML_SELECTTOOL[] = "Debugger.QmlSelectTool";
|
||||
const char QML_ZOOMTOOL[] = "Debugger.QmlZoomTool";
|
||||
|
||||
@@ -1213,7 +1213,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
m_hiddenStopAction.setAttribute(ProxyAction::UpdateText);
|
||||
m_hiddenStopAction.setAttribute(ProxyAction::UpdateIcon);
|
||||
|
||||
cmd = ActionManager::registerAction(&m_hiddenStopAction, Constants::HIDDEN_STOP);
|
||||
cmd = ActionManager::registerAction(&m_hiddenStopAction, "Debugger.HiddenStop");
|
||||
cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Shift+Ctrl+Y") : tr("Shift+F5")));
|
||||
|
||||
act = new QAction(tr("Abort Debugging"), this);
|
||||
@@ -1232,7 +1232,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
debugMenu->addSeparator();
|
||||
|
||||
cmd = ActionManager::registerAction(&m_startAndBreakOnMain,
|
||||
Constants::START_AND_BREAK_ON_MAIN,
|
||||
"Debugger.StartAndBreakOnMain",
|
||||
debuggerNotRunning);
|
||||
cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Ctrl+Shift+O") : tr("F10")));
|
||||
cmd->setAttribute(Command::CA_Hide);
|
||||
|
||||
Reference in New Issue
Block a user