Find: Add text editor color scheme to search result

Task-number: QTCREATORBUG-8070

Change-Id: Ic220e3364aa9a5227518a210dbf0590deb06a4d6
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
David Schulz
2012-10-18 08:02:25 +02:00
parent e0939df1d4
commit f06ff7b100
17 changed files with 148 additions and 35 deletions

View File

@@ -274,9 +274,14 @@ void TextEditorPlugin::invokeQuickFix()
void TextEditorPlugin::updateSearchResultsFont(const FontSettings &settings)
{
if (m_searchResultWindow)
if (m_searchResultWindow) {
m_searchResultWindow->setTextEditorFont(QFont(settings.family(),
settings.fontSize() * settings.fontZoom() / 100));
settings.fontSize() * settings.fontZoom() / 100),
settings.formatFor(TextEditor::C_TEXT).foreground(),
settings.formatFor(TextEditor::C_TEXT).background(),
settings.formatFor(TextEditor::C_SEARCH_RESULT).foreground(),
settings.formatFor(TextEditor::C_SEARCH_RESULT).background());
}
}
void TextEditorPlugin::updateVariable(const QByteArray &variable)