forked from qt-creator/qt-creator
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user