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

@@ -30,15 +30,12 @@
#include "helpmode.h"
#include "helpconstants.h"
#include <coreplugin/findplaceholder.h>
#include <QtGui/QWidget>
#include <QtGui/QLayout>
using namespace Help;
using namespace Help::Internal;
HelpMode::HelpMode(QWidget *widget, QWidget *centralWidget, QObject *parent)
HelpMode::HelpMode(QWidget *widget, QObject *parent)
: BaseMode(parent)
{
setDisplayName(tr("Help"));
@@ -46,8 +43,6 @@ HelpMode::HelpMode(QWidget *widget, QWidget *centralWidget, QObject *parent)
setIcon(QIcon(QLatin1String(":/fancyactionbar/images/mode_Reference.png")));
setPriority(Constants::P_MODE_HELP);
setWidget(widget);
centralWidget->layout()->setSpacing(0);
centralWidget->layout()->addWidget(new Core::FindToolBarPlaceHolder(centralWidget));
}