diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-09-10 14:33:14 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-09-18 09:33:07 +0000 |
commit | 4376bc1e3979a6cfb7a3a431207a4ca6694ad501 (patch) | |
tree | b9acd35a7f64b97f7a03819c33981511edf786b0 /src/plugins/texteditor/texteditorsettings.cpp | |
parent | 03983a26483ca9a27babecc73681765c50af1ae0 (diff) |
Core: Allow different highlight colors in search result window
... and make use of that in CppTool's "Find Usages" by assigning
different colors to read and write accesses.
Fixes: QTCREATORBUG-12734
Change-Id: I067db2c8d693bb2c5be44249931ee4f0269f7e52
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/texteditor/texteditorsettings.cpp')
-rw-r--r-- | src/plugins/texteditor/texteditorsettings.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/texteditor/texteditorsettings.cpp b/src/plugins/texteditor/texteditorsettings.cpp index e9a49cbc8a..db6127d72d 100644 --- a/src/plugins/texteditor/texteditorsettings.cpp +++ b/src/plugins/texteditor/texteditorsettings.cpp @@ -104,6 +104,14 @@ FormatDescriptions TextEditorSettingsPrivate::initialFormats() formatDescr.emplace_back(C_SEARCH_RESULT, tr("Search Result"), tr("Highlighted search results inside the editor."), FormatDescription::ShowBackgroundControl); + formatDescr.emplace_back(C_SEARCH_RESULT_ALT1, tr("Search Result (alternative 1)"), + tr("Highlighted search results inside the editor.\n" + "Used to mark read accesses to C++ symbols."), + FormatDescription::ShowBackgroundControl); + formatDescr.emplace_back(C_SEARCH_RESULT_ALT2, tr("Search Result (alternative 2)"), + tr("Highlighted search results inside the editor.\n" + "Used to mark write accesses to C++ symbols."), + FormatDescription::ShowBackgroundControl); formatDescr.emplace_back(C_SEARCH_SCOPE, tr("Search Scope"), tr("Section where the pattern is searched in."), FormatDescription::ShowBackgroundControl); |