Make 'open in other split' a flag instead of another method.

Change-Id: I1acafd85ec7a87ba2ac61240f30c329d56461118
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
Eike Ziller
2013-05-31 13:56:14 +02:00
parent 55e087ab05
commit 97915bbcea
3 changed files with 6 additions and 11 deletions

View File

@@ -164,7 +164,8 @@ void CppToolsPlugin::switchHeaderSourceInNextSplit()
QString otherFile = correspondingHeaderOrSource(
Core::EditorManager::currentEditor()->document()->fileName());
if (!otherFile.isEmpty())
Core::EditorManager::openEditorInOtherSplit(otherFile);
Core::EditorManager::openEditor(otherFile, Core::Id(), Core::EditorManager::OpenInOtherSplit
| Core::EditorManager::ModeSwitch);
}
static QStringList findFilesInProject(const QString &name,