diff options
| author | Henning Gruendl <henning.gruendl@qt.io> | 2023-02-13 14:20:44 +0100 |
|---|---|---|
| committer | Henning Gründl <henning.gruendl@qt.io> | 2023-02-15 10:59:12 +0000 |
| commit | 9f4eae6536fd073ba139248c3003048bde698ea1 (patch) | |
| tree | c1b4d88ad70bcf4db8ac325ee129853ed9021e10 | |
| parent | fbb79bb4e4036ca69dc0c541e62e7b00f815610f (diff) | |
| download | qt-creator-9f4eae6536fd073ba139248c3003048bde698ea1.tar.gz | |
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>
| -rw-r--r-- | src/plugins/qmldesigner/designmodewidget.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/plugins/qmldesigner/designmodewidget.cpp b/src/plugins/qmldesigner/designmodewidget.cpp index 09483d3104..21c8ac5b6a 100644 --- a/src/plugins/qmldesigner/designmodewidget.cpp +++ b/src/plugins/qmldesigner/designmodewidget.cpp @@ -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){ |
