diff options
author | Ihor Ivlev <ivlev.igor@gmail.com> | 2022-05-07 00:44:03 +0300 |
---|---|---|
committer | Ihor Ivlev <ivlev.igor@gmail.com> | 2022-05-25 15:05:25 +0000 |
commit | 6f7e7980d2b604c79507f9165098f783db8ab2e3 (patch) | |
tree | 35a1c59758149649bea3d54824900af59c47e7ee /src/plugins/texteditor/fontsettingspage.h | |
parent | 5da36104abecf64f660ce6058430f8d611841851 (diff) |
Display parent functions in the Find Usages menu
To display the parent function, first we find it in displayResults and
store the information to SearchResultItem, then
SearchResultTreeItemDelegate gets the information and renders it.
Similar approach is applied to ClangdClient, in addSearchResultsForFile.
This change also adds default style for containing function highlight in
the search.
Default foreground and background colors are same as usual text colors.
Task-number: QTCREATORBUG-27550
Change-Id: Id1251afa192f8d1232524742b7c211770bcb83fb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/texteditor/fontsettingspage.h')
-rw-r--r-- | src/plugins/texteditor/fontsettingspage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/fontsettingspage.h b/src/plugins/texteditor/fontsettingspage.h index cf516e38d1..731c7d1965 100644 --- a/src/plugins/texteditor/fontsettingspage.h +++ b/src/plugins/texteditor/fontsettingspage.h @@ -53,6 +53,7 @@ public: enum ShowControls { ShowForegroundControl = 0x1, ShowBackgroundControl = 0x2, + ShowForeAndBackgroundControl = ShowForegroundControl | ShowBackgroundControl, ShowFontControls = 0x4, ShowUnderlineControl = 0x8, ShowRelativeForegroundControl = 0x10, |