From 104b24c278911f0f2429263da012f1e215a2356e Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 20 Dec 2012 11:34:00 +0100 Subject: [PATCH] Fixed highlight color in compile output pane. Task-number: QTCREATORBUG-5121 Change-Id: I622202d02fcc1fd01bbad54616965efce8f2e430 Reviewed-by: Tobias Hunger Reviewed-by: David Schulz --- src/plugins/projectexplorer/compileoutputwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/plugins/projectexplorer/compileoutputwindow.cpp b/src/plugins/projectexplorer/compileoutputwindow.cpp index 0d8d1766bd5..b346c6d3a5b 100644 --- a/src/plugins/projectexplorer/compileoutputwindow.cpp +++ b/src/plugins/projectexplorer/compileoutputwindow.cpp @@ -119,6 +119,15 @@ CompileOutputWindow::CompileOutputWindow(BuildManager * /*bm*/, QAction *cancelB m_outputWindow->setUndoRedoEnabled(false); m_outputWindow->setMaxLineCount(MAX_LINECOUNT); + // Let selected text be colored as if the text edit was editable, + // otherwise the highlight for searching is too light + QPalette p = m_outputWindow->palette(); + QColor activeHighlight = p.color(QPalette::Active, QPalette::Highlight); + p.setColor(QPalette::Highlight, activeHighlight); + QColor activeHighlightedText = p.color(QPalette::Active, QPalette::HighlightedText); + p.setColor(QPalette::HighlightedText, activeHighlightedText); + m_outputWindow->setPalette(p); + m_cancelBuildButton->setDefaultAction(cancelBuildAction); Aggregation::Aggregate *agg = new Aggregation::Aggregate;