Move some code to where it belongs really.

This commit is contained in:
kh1
2010-07-21 14:56:03 +02:00
parent a59a1e5d37
commit 37b06903d3
3 changed files with 8 additions and 8 deletions

View File

@@ -296,6 +296,11 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
mainWidgetLayout->addWidget(createToolBar());
mainWidgetLayout->addWidget(m_centralWidget);
if (QLayout *layout = m_centralWidget->layout()) {
layout->setSpacing(0);
layout->addWidget(new Core::FindToolBarPlaceHolder(m_centralWidget));
}
HelpIndexFilter *helpIndexFilter = new HelpIndexFilter();
addAutoReleasedObject(helpIndexFilter);
connect(helpIndexFilter, SIGNAL(linkActivated(QUrl)), this,
@@ -310,7 +315,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
connect(m_core->modeManager(), SIGNAL(currentModeChanged(Core::IMode*,
Core::IMode*)), this, SLOT(modeChanged(Core::IMode*, Core::IMode*)));
addAutoReleasedObject(m_mode = new HelpMode(m_splitter, m_centralWidget));
addAutoReleasedObject(m_mode = new HelpMode(m_splitter));
m_mode->setContext(modecontext);
return true;