diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index eafe8063af5b917df6b24deb5d002aff29050147..38ecd025ab8deeef8125412ce7cf5a5de062de7e 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -303,7 +303,6 @@ bool MainWindow::init(QString *errorMessage) oph->setCloseable(false); outputModeWidget->layout()->addWidget(oph); oph->setVisible(true); // since the output pane placeholder is invisible at startup by default (which makes sense in most cases) - outputModeWidget->layout()->addWidget(new Core::FindToolBarPlaceHolder(outputModeWidget)); outputModeWidget->setFocusProxy(oph); connect(m_modeManager, SIGNAL(currentModeChanged(Core::IMode*)), diff --git a/src/plugins/coreplugin/outputpane.cpp b/src/plugins/coreplugin/outputpane.cpp index 7033ffd6857be7852cb5bf1fe0f4b6fc79cc05a7..3954eb258384b1d9e47d24145b259df32ede00e7 100644 --- a/src/plugins/coreplugin/outputpane.cpp +++ b/src/plugins/coreplugin/outputpane.cpp @@ -37,6 +37,7 @@ #include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/editormanager/editormanager.h> +#include <coreplugin/findplaceholder.h> #include <extensionsystem/pluginmanager.h> @@ -204,6 +205,7 @@ OutputPaneManager::OutputPaneManager(QWidget *parent) : toolLayout->addWidget(m_opToolBarWidgets); toolLayout->addWidget(m_closeButton); mainlayout->addWidget(m_toolBar); + mainlayout->addWidget(new Core::FindToolBarPlaceHolder(this)); mainlayout->addWidget(m_outputWidgetPane, 10); setLayout(mainlayout); diff --git a/src/plugins/debugger/debuggeroutputwindow.cpp b/src/plugins/debugger/debuggeroutputwindow.cpp index 837747e85d1ce6fa6e0220ddcc6038a9b8019b01..d9328b33fbd352c487df17365a9369403dcf088e 100644 --- a/src/plugins/debugger/debuggeroutputwindow.cpp +++ b/src/plugins/debugger/debuggeroutputwindow.cpp @@ -48,6 +48,7 @@ #ifndef GDBDEBUGGERLEAN #include <aggregation/aggregate.h> +#include <coreplugin/findplaceholder.h> #include <find/basetextfind.h> using namespace Find; @@ -309,8 +310,12 @@ DebuggerOutputWindow::DebuggerOutputWindow(QWidget *parent) m_splitter->addWidget(m_inputText); m_splitter->addWidget(m_combinedText); - QGridLayout *layout = new QGridLayout(this); + QVBoxLayout *layout = new QVBoxLayout(this); layout->setMargin(0); + layout->setSpacing(0); +#ifndef GDBDEBUGGERLEAN + layout->addWidget(new Core::FindToolBarPlaceHolder(this)); +#endif layout->addWidget(m_splitter); setLayout(layout);