diff options
author | hjk <qtc-committer@nokia.com> | 2010-12-06 14:12:38 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-12-07 16:45:58 +0100 |
commit | 5bce99b9e563403e69733354f1ba7b4d32d03da7 (patch) | |
tree | 5a97d2d41c909767778624228fe1b764766ad5a6 /src/plugins/help/helpmode.cpp | |
parent | 39f6652cf5ec7e62a525c86a4475e5a0631cf11b (diff) | |
download | qt-creator-5bce99b9e563403e69733354f1ba7b4d32d03da7.tar.gz |
Replace BaseMode convenience class by individual implementation.
Using the convienience class does not really save code and adds another
needless level in the hierarchy. This affects the three remaining BaseMode
users: Help, ProjectExplorer and HelloWorld.
Diffstat (limited to 'src/plugins/help/helpmode.cpp')
-rw-r--r-- | src/plugins/help/helpmode.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/plugins/help/helpmode.cpp b/src/plugins/help/helpmode.cpp index e98f0b844f..cd94c11ac8 100644 --- a/src/plugins/help/helpmode.cpp +++ b/src/plugins/help/helpmode.cpp @@ -30,20 +30,16 @@ #include "helpmode.h" #include "helpconstants.h" +#include <QtGui/QIcon> #include <QtGui/QWidget> using namespace Help; using namespace Help::Internal; -HelpMode::HelpMode(QWidget *widget, QObject *parent) - : BaseMode(parent) +HelpMode::HelpMode(QObject *parent) + : Core::IMode(parent), + m_widget(0), + m_icon(QLatin1String(":/fancyactionbar/images/mode_Reference.png")) { setObjectName(QLatin1String("HelpMode")); - setDisplayName(tr("Help")); - setId(QLatin1String(Constants::ID_MODE_HELP)); - setIcon(QIcon(QLatin1String(":/fancyactionbar/images/mode_Reference.png"))); - setPriority(Constants::P_MODE_HELP); - setWidget(widget); } - - |