ProjectExplorer: Allow text filtering in message pane

Change-Id: I7b70f7056c757fcb13634021b8e2dcf0b3a34097
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Kandeler
2019-05-14 14:33:08 +02:00
parent 51afb04674
commit 5bbed92061
3 changed files with 19 additions and 8 deletions

View File

@@ -53,6 +53,8 @@ MessageOutputWindow::MessageOutputWindow()
QColor activeHighlightedText = p.color(QPalette::Active, QPalette::HighlightedText);
p.setColor(QPalette::HighlightedText, activeHighlightedText);
m_widget->setPalette(p);
m_widget->setHighlightBgColor(p.color(QPalette::Highlight));
m_widget->setHighlightTextColor(p.color(QPalette::HighlightedText));
connect(this, &IOutputPane::zoomIn, m_widget, &Core::OutputWindow::zoomIn);
connect(this, &IOutputPane::zoomOut, m_widget, &Core::OutputWindow::zoomOut);
@@ -62,6 +64,9 @@ MessageOutputWindow::MessageOutputWindow()
auto agg = new Aggregation::Aggregate;
agg->add(m_widget);
agg->add(new BaseTextFind(m_widget));
setupFilterUi("MessageOutputPane.Filter");
setFilteringEnabled(true);
}
MessageOutputWindow::~MessageOutputWindow()
@@ -139,5 +144,10 @@ bool MessageOutputWindow::canNavigate() const
return false;
}
void MessageOutputWindow::updateFilter()
{
m_widget->setFilterText(filterText());
}
} // namespace Internal
} // namespace Core