CppEditor: Add support for showing pre-processed source files

Fixes: QTCREATORBUG-4
Change-Id: I819709e69e604849264e745da98065829f7cb228
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2022-09-06 17:52:22 +02:00
parent 0867d6f6a5
commit 8beeea5b5e
11 changed files with 226 additions and 18 deletions

View File

@@ -607,11 +607,11 @@ ProjectExplorer::Project *projectForProjectInfo(const ProjectInfo &info)
return ProjectExplorer::SessionManager::projectWithProjectFilePath(info.projectFilePath());
}
void openEditor(const Utils::FilePath &filePath, bool inNextSplit)
void openEditor(const Utils::FilePath &filePath, bool inNextSplit, Utils::Id editorId)
{
using Core::EditorManager;
EditorManager::openEditor(filePath, {}, inNextSplit ? EditorManager::OpenInOtherSplit
: EditorManager::NoFlags);
EditorManager::openEditor(filePath, editorId, inNextSplit ? EditorManager::OpenInOtherSplit
: EditorManager::NoFlags);
}
namespace Internal {