forked from qt-creator/qt-creator
ActionManager API cleanup.
d-pointer instead of inheritance static methods Change-Id: I7b2f0c8b05ad3951e1ff26a7d4e08e195d2dd258 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -133,7 +133,6 @@ AppOutputPane::AppOutputPane() :
|
||||
this, SLOT(reRunRunControl()));
|
||||
|
||||
// Stop
|
||||
Core::ActionManager *am = Core::ICore::actionManager();
|
||||
Core::Context globalcontext(Core::Constants::C_GLOBAL);
|
||||
|
||||
QIcon stopIcon = QIcon(QLatin1String(Constants::ICON_STOP));
|
||||
@@ -142,7 +141,7 @@ AppOutputPane::AppOutputPane() :
|
||||
m_stopAction->setToolTip(tr("Stop"));
|
||||
m_stopAction->setEnabled(false);
|
||||
|
||||
Core::Command *cmd = am->registerAction(m_stopAction, Constants::STOP, globalcontext);
|
||||
Core::Command *cmd = Core::ActionManager::registerAction(m_stopAction, Constants::STOP, globalcontext);
|
||||
|
||||
m_stopButton->setDefaultAction(cmd->action());
|
||||
m_stopButton->setAutoRaise(true);
|
||||
|
||||
Reference in New Issue
Block a user