diff options
author | hjk <hjk@qt.io> | 2023-08-24 16:14:26 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-08-25 08:00:02 +0000 |
commit | 8d0aa34bfcd5604b9b93a8c002169b361db4316c (patch) | |
tree | f4e9adfe29ada7f2fe6b703c6b898978159187ed /src/plugins/cppeditor/cppeditordocument.cpp | |
parent | e1e1af36d25b363850c970ff657bba910aaadd1d (diff) |
Plugins: A bit more Keys and Store
Change-Id: Iee55eeaa881dd9f2047fdbe95ad8d827f4ba34e0
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppeditordocument.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppeditordocument.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/cppeditordocument.cpp b/src/plugins/cppeditor/cppeditordocument.cpp index 3559fb7da7..16cae978a8 100644 --- a/src/plugins/cppeditor/cppeditordocument.cpp +++ b/src/plugins/cppeditor/cppeditordocument.cpp @@ -210,7 +210,7 @@ void CppEditorDocument::reparseWithPreferredParseContext(const QString &parseCon setPreferredParseContext(parseContextId); // Remember the setting - const QString key = Constants::PREFERRED_PARSE_CONTEXT + filePath().toString(); + const Key key = Constants::PREFERRED_PARSE_CONTEXT + keyFromString(filePath().toString()); Core::SessionManager::setValue(key, parseContextId); // Reprocess @@ -277,7 +277,7 @@ void CppEditorDocument::applyPreferredParseContextFromSettings() if (filePath().isEmpty()) return; - const QString key = Constants::PREFERRED_PARSE_CONTEXT + filePath().toString(); + const Key key = Constants::PREFERRED_PARSE_CONTEXT + keyFromString(filePath().toString()); const QString parseContextId = Core::SessionManager::value(key).toString(); setPreferredParseContext(parseContextId); @@ -288,7 +288,7 @@ void CppEditorDocument::applyExtraPreprocessorDirectivesFromSettings() if (filePath().isEmpty()) return; - const QString key = Constants::EXTRA_PREPROCESSOR_DIRECTIVES + filePath().toString(); + const Key key = Constants::EXTRA_PREPROCESSOR_DIRECTIVES + keyFromString(filePath().toString()); const QByteArray directives = Core::SessionManager::value(key).toString().toUtf8(); setExtraPreprocessorDirectives(directives); |