diff options
author | David Schulz <[email protected]> | 2018-02-02 13:39:18 +0100 |
---|---|---|
committer | David Schulz <[email protected]> | 2018-02-02 13:15:55 +0000 |
commit | 0eb7bab20c2c360a2b02a35e9aa076f845ce0185 (patch) | |
tree | a37fba90e882c52e09a7bbe1bcbbb125cba46ffc /src/plugins/debugger/debuggerplugin.cpp | |
parent | 1611d016a10de4ad450c2d5ef6d5873a984a6c20 (diff) |
Core: make useMacShortcut constexpr
Change-Id: I293b96428784b6efecac6dae4f2f9690af0027da
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 8825e72ecf0..db1336c972f 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1279,7 +1279,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, TaskHub::addCategory(TASK_CATEGORY_DEBUGGER_RUNTIME, tr("Debugger Runtime")); - const QKeySequence debugKey = QKeySequence(UseMacShortcuts ? tr("Ctrl+Y") : tr("F5")); + const QKeySequence debugKey = QKeySequence(useMacShortcuts ? tr("Ctrl+Y") : tr("F5")); QSettings *settings = ICore::settings(); @@ -1583,7 +1583,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, m_hiddenStopAction->setAttribute(ProxyAction::UpdateIcon); cmd = ActionManager::registerAction(m_hiddenStopAction, Constants::HIDDEN_STOP); - cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? tr("Shift+Ctrl+Y") : tr("Shift+F5"))); + cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Shift+Ctrl+Y") : tr("Shift+F5"))); cmd = ActionManager::registerAction(m_abortAction, Constants::ABORT); cmd->setDescription(tr("Reset Debugger")); @@ -1596,25 +1596,25 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, debugMenu->addSeparator(); cmd = ActionManager::registerAction(m_nextAction, Constants::NEXT); - cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? tr("Ctrl+Shift+O") : tr("F10"))); + cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Ctrl+Shift+O") : tr("F10"))); cmd->setAttribute(Command::CA_Hide); cmd->setAttribute(Command::CA_UpdateText); debugMenu->addAction(cmd); cmd = ActionManager::registerAction(m_stepAction, Constants::STEP); - cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? tr("Ctrl+Shift+I") : tr("F11"))); + cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Ctrl+Shift+I") : tr("F11"))); cmd->setAttribute(Command::CA_Hide); cmd->setAttribute(Command::CA_UpdateText); debugMenu->addAction(cmd); cmd = ActionManager::registerAction(m_stepOutAction, Constants::STEPOUT); - cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? tr("Ctrl+Shift+T") : tr("Shift+F11"))); + cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Ctrl+Shift+T") : tr("Shift+F11"))); cmd->setAttribute(Command::CA_Hide); debugMenu->addAction(cmd); cmd = ActionManager::registerAction(m_runToLineAction, "Debugger.RunToLine", cppDebuggercontext); - cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? tr("Shift+F8") : tr("Ctrl+F10"))); + cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("Shift+F8") : tr("Ctrl+F10"))); cmd->setAttribute(Command::CA_Hide); debugMenu->addAction(cmd); @@ -1639,7 +1639,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, if (isReverseDebuggingEnabled()) { cmd = ActionManager::registerAction(m_reverseDirectionAction, Constants::REVERSE, cppDebuggercontext); - cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? QString() : tr("F12"))); + cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? QString() : tr("F12"))); cmd->setAttribute(Command::CA_Hide); debugMenu->addAction(cmd); } @@ -1663,7 +1663,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments, debugMenu->addAction(cmd); cmd = ActionManager::registerAction(m_breakAction, "Debugger.ToggleBreak"); - cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? tr("F8") : tr("F9"))); + cmd->setDefaultKeySequence(QKeySequence(useMacShortcuts ? tr("F8") : tr("F9"))); debugMenu->addAction(cmd); connect(m_breakAction, &QAction::triggered, this, &DebuggerPluginPrivate::toggleBreakpointHelper); |