Commit 7380c15f authored by Friedemann Kleint's avatar Friedemann Kleint

Qt Designer/Design mode: Do not switch to Edit mode when running

an application that produces output. Add a placeholder for the
output pane.

Reviewed-by: con
Task-number: QTCREATORBUG-1750
parent aaffc710
......@@ -51,6 +51,8 @@
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/actionmanager/command.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/minisplitter.h>
#include <coreplugin/outputpane.h>
#include <texteditor/texteditorsettings.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/qtcassert.h>
......@@ -328,7 +330,12 @@ void FormEditorW::fullInit()
layout->setMargin(0);
layout->setSpacing(0);
layout->addWidget(m_toolBar);
layout->addWidget(m_editorWidget);
// Avoid mode switch to 'Edit' mode when the application started by
// 'Run' in 'Design' mode emits output.
Core::MiniSplitter *splitter = new Core::MiniSplitter(Qt::Vertical);
splitter->addWidget(m_editorWidget);
splitter->addWidget(new Core::OutputPanePlaceHolder(m_designMode, splitter));
layout->addWidget(splitter);
m_modeWidget->setLayout(layout);
Core::UniqueIDManager *idMan = Core::UniqueIDManager::instance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment