forked from qt-creator/qt-creator
VCS: Fix find in output pane
It is instantiated in several locations. Move the find support to its ctor. Change-Id: I77b05eff2889d0b8b801eef38d701ca4af3eefda Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
215654b574
commit
9117b28eb1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user