EditorManagerPlaceHolder: Don't restrict to one per mode

Make visibility the deciding factor which placeholder takes the main
editor area. A mode can have multiple placeholders as long as only a
single one is visible at a time.

Change-Id: I80b86dcb9e31b29f87fe42a465a3d3ad49eeef17
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-04-26 14:41:38 +02:00
committed by Eike Ziller
parent 6f3e4e8635
commit 4eab11262c
4 changed files with 16 additions and 24 deletions

View File

@@ -205,7 +205,7 @@ void DebuggerMainWindow::finalizeSetup()
QWidget *createModeWindow(const Core::Id &mode, DebuggerMainWindow *mainWindow, QWidget *central)
{
if (!central)
central = new EditorManagerPlaceHolder(mode);
central = new EditorManagerPlaceHolder;
auto editorHolderLayout = new QVBoxLayout;
editorHolderLayout->setMargin(0);