forked from qt-creator/qt-creator
Core: Make Context parameter to registerAction optional
... and default to C_GLOBAL. A rather common case. Similar for ActionContainer::addSeparator(). Change-Id: I7f9ba573af201c0a472132d5a494ad17cc4175b7 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -400,11 +400,9 @@ QDockWidget *DebuggerMainWindow::createDockWidget(const DebuggerLanguage &langua
|
||||
if (!(d->m_activeDebugLanguages & language))
|
||||
dockWidget->hide();
|
||||
|
||||
Context globalContext(Core::Constants::C_GLOBAL);
|
||||
|
||||
QAction *toggleViewAction = dockWidget->toggleViewAction();
|
||||
Command *cmd = ActionManager::registerAction(toggleViewAction,
|
||||
Id("Debugger.").withSuffix(widget->objectName()), globalContext);
|
||||
Id("Debugger.").withSuffix(widget->objectName()));
|
||||
cmd->setAttribute(Command::CA_Hide);
|
||||
|
||||
dockWidget->installEventFilter(&d->m_resizeEventFilter);
|
||||
|
||||
Reference in New Issue
Block a user