forked from qt-creator/qt-creator
Fixed highlight color in compile output pane.
Task-number: QTCREATORBUG-5121 Change-Id: I622202d02fcc1fd01bbad54616965efce8f2e430 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
af890533f6
commit
104b24c278
@@ -119,6 +119,15 @@ CompileOutputWindow::CompileOutputWindow(BuildManager * /*bm*/, QAction *cancelB
|
|||||||
m_outputWindow->setUndoRedoEnabled(false);
|
m_outputWindow->setUndoRedoEnabled(false);
|
||||||
m_outputWindow->setMaxLineCount(MAX_LINECOUNT);
|
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);
|
m_cancelBuildButton->setDefaultAction(cancelBuildAction);
|
||||||
|
|
||||||
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
|
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
|
||||||
|
|||||||
Reference in New Issue
Block a user