icontext: remove BaseContext class

This commit is contained in:
hjk
2011-04-13 14:34:24 +02:00
parent 70d392d235
commit 5b7b39cbda
4 changed files with 11 additions and 18 deletions

View File

@@ -579,9 +579,10 @@ void HelpPlugin::createRightPaneContextViewer()
agg->add(m_helpViewerForSideBar);
agg->add(new HelpViewerFindSupport(m_helpViewerForSideBar));
Core::Context context(Constants::C_HELP_SIDEBAR);
m_core->addContextObject(new Core::BaseContext(m_helpViewerForSideBar,
context, this));
Core::IContext *context = new Core::IContext(this);
context->setContext(Core::Context(Constants::C_HELP_SIDEBAR));
context->setWidget(m_helpViewerForSideBar);
m_core->addContextObject(context);
QAction *copy = new QAction(this);
Core::Command *cmd = m_core->actionManager()->registerAction(copy,