Skip to content
Snippets Groups Projects
Commit 9117b28e authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,9 @@ OutputWindowPlainTextEdit::OutputWindowPlainTextEdit(QWidget *parent) : ...@@ -126,6 +126,9 @@ OutputWindowPlainTextEdit::OutputWindowPlainTextEdit(QWidget *parent) :
m_messageFormat.setForeground(Utils::creatorTheme()->color(Theme::OutputPanes_MessageOutput)); m_messageFormat.setForeground(Utils::creatorTheme()->color(Theme::OutputPanes_MessageOutput));
m_formatter = new Utils::OutputFormatter; m_formatter = new Utils::OutputFormatter;
m_formatter->setPlainTextEdit(this); m_formatter->setPlainTextEdit(this);
Aggregation::Aggregate *agg = new Aggregation::Aggregate;
agg->add(this);
agg->add(new Core::BaseTextFind(this));
} }
OutputWindowPlainTextEdit::~OutputWindowPlainTextEdit() OutputWindowPlainTextEdit::~OutputWindowPlainTextEdit()
...@@ -288,12 +291,8 @@ public: ...@@ -288,12 +291,8 @@ public:
Internal::OutputWindowPlainTextEdit *VcsOutputWindowPrivate::widget() Internal::OutputWindowPlainTextEdit *VcsOutputWindowPrivate::widget()
{ {
if (!m_widget) { if (!m_widget)
m_widget = new Internal::OutputWindowPlainTextEdit(); 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; return m_widget;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment