Commit 63f31dcb authored by kh1's avatar kh1
Browse files

Remove some superfluous stuff.

parent 1eceed92
......@@ -32,8 +32,6 @@
#include <coreplugin/findplaceholder.h>
#include <QtCore/QLatin1String>
#include <QtGui/QWidget>
#include <QtGui/QLayout>
......@@ -41,15 +39,15 @@ using namespace Help;
using namespace Help::Internal;
HelpMode::HelpMode(QWidget *widget, QWidget *centralWidget, QObject *parent)
: BaseMode(parent), m_centralWidget(centralWidget)
: BaseMode(parent)
{
setDisplayName(tr("Help"));
setId(QLatin1String(Constants::ID_MODE_HELP));
setIcon(QIcon(QLatin1String(":/fancyactionbar/images/mode_Reference.png")));
setPriority(Constants::P_MODE_HELP);
setWidget(widget);
m_centralWidget->layout()->setSpacing(0);
m_centralWidget->layout()->addWidget(new Core::FindToolBarPlaceHolder(m_centralWidget));
centralWidget->layout()->setSpacing(0);
centralWidget->layout()->addWidget(new Core::FindToolBarPlaceHolder(centralWidget));
}
......@@ -30,13 +30,9 @@
#ifndef HELPMODE_H
#define HELPMODE_H
#include <QtCore/QObject>
#include <coreplugin/basemode.h>
QT_BEGIN_NAMESPACE
class QWidget;
QT_END_NAMESPACE
QT_FORWARD_DECLARE_CLASS(QWidget)
namespace Help {
namespace Internal {
......@@ -47,9 +43,6 @@ class HelpMode : public Core::BaseMode
public:
HelpMode(QWidget *widget, QWidget *centralWidget, QObject *parent = 0);
private:
QWidget *m_centralWidget;
};
} // namespace Internal
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment