aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/fontsettings.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-09-10 14:33:14 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-09-18 09:33:07 +0000
commit4376bc1e3979a6cfb7a3a431207a4ca6694ad501 (patch)
treeb9acd35a7f64b97f7a03819c33981511edf786b0 /src/plugins/texteditor/fontsettings.cpp
parent03983a26483ca9a27babecc73681765c50af1ae0 (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/fontsettings.cpp')
-rw-r--r--src/plugins/texteditor/fontsettings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/texteditor/fontsettings.cpp b/src/plugins/texteditor/fontsettings.cpp
index 9e8b39c72d7..d74a13b2cc5 100644
--- a/src/plugins/texteditor/fontsettings.cpp
+++ b/src/plugins/texteditor/fontsettings.cpp
@@ -151,6 +151,8 @@ static bool isOverlayCategory(TextStyle category)
return category == C_OCCURRENCES
|| category == C_OCCURRENCES_RENAME
|| category == C_SEARCH_RESULT
+ || category == C_SEARCH_RESULT_ALT1
+ || category == C_SEARCH_RESULT_ALT2
|| category == C_PARENTHESES_MISMATCH;
}