forked from qt-creator/qt-creator
QmlDesigner: Make application output the default
Make the application output pane the default when the output dock widget is opened. Change-Id: I60079242078033310676df3c3c450ef83b8d67d1 Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
fbb79bb4e4
commit
9f4eae6536
@@ -330,8 +330,19 @@ void DesignModeWidget::setup()
|
||||
command->setAttribute(Core::Command::CA_Hide);
|
||||
viewCommands.append(command);
|
||||
|
||||
connect(outputPanePlaceholder, &Core::OutputPanePlaceHolder::visibilityChangeRequested,
|
||||
m_outputPaneDockWidget, &ADS::DockWidget::toggleView);
|
||||
connect(command->action(), &QAction::triggered, this, [command]() {
|
||||
if (!command->action()->isChecked())
|
||||
return;
|
||||
|
||||
auto cmd = Core::ActionManager::command("QtCreator.Pane.ApplicationOutput");
|
||||
QTC_ASSERT(cmd, return);
|
||||
cmd->action()->trigger();
|
||||
});
|
||||
|
||||
connect(outputPanePlaceholder,
|
||||
&Core::OutputPanePlaceHolder::visibilityChangeRequested,
|
||||
m_outputPaneDockWidget,
|
||||
&ADS::DockWidget::toggleView);
|
||||
}
|
||||
|
||||
std::sort(viewCommands.begin(), viewCommands.end(), [](Core::Command *first, Core::Command *second){
|
||||
|
Reference in New Issue
Block a user