forked from qt-creator/qt-creator
Merge remote branch 'origin/1.3'
This commit is contained in:
@@ -746,13 +746,15 @@ HelpViewer* HelpPlugin::viewerForContextMode()
|
||||
{
|
||||
HelpViewer *viewer = 0;
|
||||
bool showSideBySide = false;
|
||||
Core::RightPanePlaceHolder* placeHolder = Core::RightPanePlaceHolder::current();
|
||||
Core::IEditor *editor = Core::EditorManager::instance()->currentEditor();
|
||||
|
||||
switch (m_helpEngine->customValue(QLatin1String("ContextHelpOption"), 0).toInt())
|
||||
{
|
||||
case 0: // side by side if possible
|
||||
{
|
||||
if (Core::IEditor *editor = Core::EditorManager::instance()->currentEditor()) {
|
||||
if (editor->widget() && editor->widget()->isVisible() && editor->widget()->width() < 800 )
|
||||
if ((!placeHolder || !placeHolder->isVisible()) && editor) {
|
||||
if (!editor->widget() && editor->widget()->isVisible() && editor->widget()->width() < 800 )
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -764,7 +766,6 @@ HelpViewer* HelpPlugin::viewerForContextMode()
|
||||
break;
|
||||
}
|
||||
|
||||
Core::RightPanePlaceHolder* placeHolder = Core::RightPanePlaceHolder::current();
|
||||
if (placeHolder && showSideBySide) {
|
||||
Core::RightPaneWidget::instance()->setShown(true);
|
||||
viewer = m_helpViewerForSideBar;
|
||||
|
||||
Reference in New Issue
Block a user