Let ModeManager::addAction take a QAction instead of Command

There was no reason, and using QAction is more flexible.
This commit is contained in:
con
2011-01-12 14:21:12 +01:00
parent e7ad89ffd8
commit 8bf142fbc3
5 changed files with 10 additions and 10 deletions

View File

@@ -2836,7 +2836,7 @@ void DebuggerPluginPrivate::extensionsInitialized()
cmd->setDefaultText(tr("Start Debugging"));
cmd->setDefaultKeySequence(QKeySequence(Constants::DEBUG_KEY));
mstart->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
Core::ICore::instance()->modeManager()->addAction(cmd, Constants::P_ACTION_DEBUG);
Core::ICore::instance()->modeManager()->addAction(cmd->action(), Constants::P_ACTION_DEBUG);
cmd = am->registerAction(m_actions.continueAction,
Constants::DEBUG, m_continuableContext);