Commit 9117b28e authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

VCS: Fix find in output pane

It is instantiated in several locations. Move the find support to its ctor.

Change-Id: I77b05eff2889d0b8b801eef38d701ca4af3eefda
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 215654b5
......@@ -126,6 +126,9 @@ OutputWindowPlainTextEdit::OutputWindowPlainTextEdit(QWidget *parent) :
m_messageFormat.setForeground(Utils::creatorTheme()->color(Theme::OutputPanes_MessageOutput));
m_formatter = new Utils::OutputFormatter;
m_formatter->setPlainTextEdit(this);
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
agg->add(this);
agg->add(new Core::BaseTextFind(this));
}
OutputWindowPlainTextEdit::~OutputWindowPlainTextEdit()
......@@ -288,12 +291,8 @@ public:
Internal::OutputWindowPlainTextEdit *VcsOutputWindowPrivate::widget()
{
if (!m_widget) {
if (!m_widget)
m_widget = new Internal::OutputWindowPlainTextEdit();
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
agg->add(m_widget);
agg->add(new Core::BaseTextFind(m_widget));
}
return m_widget;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment