diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-05-31 13:56:14 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-06-03 09:32:22 +0200 |
commit | 97915bbceafeda7e44e07a2eb8da4d029e18c071 (patch) | |
tree | 6a311636cff857ed6fb3fad08da6897ad9b75f38 /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | 55e087ab05449cfe13228126da3de2accfcd6d30 (diff) | |
download | qt-creator-97915bbceafeda7e44e07a2eb8da4d029e18c071.tar.gz |
Make 'open in other split' a flag instead of another method.
Change-Id: I1acafd85ec7a87ba2ac61240f30c329d56461118
Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 66e8a68966..af579bb5a7 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -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, |