mode: make displayname, icon, priority, id, type data members

This commit is contained in:
hjk
2011-04-13 16:09:04 +02:00
parent 5b7b39cbda
commit be9455bc50
21 changed files with 75 additions and 198 deletions

View File

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