CppEditor: Give C++ file name settings a per-project variant

Fixes: QTCREATORBUG-22033
Change-Id: If37517bb091438e70c5af5102bf833ed46d0c951
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2023-05-31 14:29:03 +02:00
parent 6cc325f845
commit 8e75381fce
39 changed files with 431 additions and 162 deletions

View File

@@ -611,9 +611,19 @@ void openEditor(const Utils::FilePath &filePath, bool inNextSplit, Utils::Id edi
: EditorManager::NoFlags);
}
bool preferLowerCaseFileNames()
bool preferLowerCaseFileNames(ProjectExplorer::Project *project)
{
return Internal::CppEditorPlugin::fileSettings()->lowerCaseFiles;
return Internal::CppEditorPlugin::fileSettings(project).lowerCaseFiles;
}
QString preferredCxxHeaderSuffix(ProjectExplorer::Project *project)
{
return Internal::CppEditorPlugin::fileSettings(project).headerSuffix;
}
QString preferredCxxSourceSuffix(ProjectExplorer::Project *project)
{
return Internal::CppEditorPlugin::fileSettings(project).sourceSuffix;
}
namespace Internal {