aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/outputwindow.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-03-19 16:00:37 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2020-03-20 13:48:15 +0000
commit04a99c1de16e1d04bcc1908fec7464d15b421702 (patch)
tree1f298306aae0ae288bac75b0691c8968e6c72e6b /src/plugins/coreplugin/outputwindow.h
parent7158e676121767f43ac542cc3c958d8ed1279436 (diff)
Remove the limitation that output formatters have to be exclusive
Introduce an aggregating output formatter that forwards its input to a sub-formatter that feels responsible for it, or otherwise lets the base class handle it. Our output panes now use such an aggregating formatter. In particular, this means that in the future, we won't have to stuff all run control output formatting into the Qt output formatter anymore. Change-Id: I5498f200a61db10ccff3ec8974c6825da7f7072d Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/outputwindow.h')
-rw-r--r--src/plugins/coreplugin/outputwindow.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/outputwindow.h b/src/plugins/coreplugin/outputwindow.h
index a90e9ced66..77703f0b9a 100644
--- a/src/plugins/coreplugin/outputwindow.h
+++ b/src/plugins/coreplugin/outputwindow.h
@@ -56,12 +56,13 @@ public:
OutputWindow(Context context, const QString &settingsKey, QWidget *parent = nullptr);
~OutputWindow() override;
- void setFormatter(Utils::OutputFormatter *formatter);
+ void setFormatters(const QList<Utils::OutputFormatter *> &formatters);
void appendMessage(const QString &out, Utils::OutputFormat format);
void grayOutOldContent();
void clear();
+ void flush();
void scrollToBottom();