coreplugin: Make RightPaneWidget more widely usable.

RightPaneWidget now has setWidget() and is no longer intimately tied
to the help plugin. Help plugin now uses setWidget().

Reviewed-By: dt
This commit is contained in:
Pasi Hirvonen
2011-02-24 14:00:04 +02:00
committed by dt
parent e48cce0739
commit d28dc2d989
3 changed files with 25 additions and 74 deletions

View File

@@ -554,8 +554,6 @@ void HelpPlugin::createRightPaneContextViewer()
layout->addWidget(toolButton(close));
QWidget *rightPaneSideBar = new QWidget;
addAutoReleasedObject(new Core::BaseRightPaneWidget(rightPaneSideBar));
m_helpViewerForSideBar = new HelpViewer(qreal(0.0), rightPaneSideBar);
connect(m_helpViewerForSideBar, SIGNAL(openFindToolBar()), this,
SLOT(openFindToolBar()));
@@ -834,6 +832,7 @@ HelpViewer* HelpPlugin::viewerForContextMode()
}
if (placeHolder && showSideBySide) {
RightPaneWidget::instance()->setWidget(m_helpViewerForSideBar->parentWidget());
RightPaneWidget::instance()->setShown(true);
createRightPaneContextViewer();
return m_helpViewerForSideBar;