diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2016-04-26 14:41:38 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2016-04-28 07:26:12 +0000 |
commit | 4eab11262cd7b82bfa7f33df7f9d7d84d4b54da3 (patch) | |
tree | 8433b10db0b8c8f5cbec545da54865199aad8319 /src/plugins/coreplugin/editmode.cpp | |
parent | 6f3e4e8635104acc59f31ac000edf0cc9d585240 (diff) | |
download | qt-creator-4eab11262cd7b82bfa7f33df7f9d7d84d4b54da3.tar.gz |
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>
Diffstat (limited to 'src/plugins/coreplugin/editmode.cpp')
-rw-r--r-- | src/plugins/coreplugin/editmode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/editmode.cpp b/src/plugins/coreplugin/editmode.cpp index 6432ac8a15..f7b42d221f 100644 --- a/src/plugins/coreplugin/editmode.cpp +++ b/src/plugins/coreplugin/editmode.cpp @@ -58,7 +58,7 @@ EditMode::EditMode() : m_rightSplitWidgetLayout->setMargin(0); QWidget *rightSplitWidget = new QWidget; rightSplitWidget->setLayout(m_rightSplitWidgetLayout); - auto editorPlaceHolder = new EditorManagerPlaceHolder(Constants::MODE_EDIT); + auto editorPlaceHolder = new EditorManagerPlaceHolder; m_rightSplitWidgetLayout->insertWidget(0, editorPlaceHolder); MiniSplitter *rightPaneSplitter = new MiniSplitter; |