diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-03-19 16:00:37 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-03-20 13:48:15 +0000 |
commit | 04a99c1de16e1d04bcc1908fec7464d15b421702 (patch) | |
tree | 1f298306aae0ae288bac75b0691c8968e6c72e6b /src/plugins/projectexplorer/runcontrol.h | |
parent | 7158e676121767f43ac542cc3c958d8ed1279436 (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/projectexplorer/runcontrol.h')
-rw-r--r-- | src/plugins/projectexplorer/runcontrol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index cda6d6ab55..99c6a7636c 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -238,7 +238,7 @@ public: Utils::FilePath targetFilePath() const; Utils::FilePath projectFilePath() const; - Utils::OutputFormatter *outputFormatter() const; + QList<Utils::OutputFormatter *> outputFormatters() const; Core::Id runMode() const; const Runnable &runnable() const; @@ -309,7 +309,7 @@ protected: public: virtual ~OutputFormatterFactory(); - static Utils::OutputFormatter *createFormatter(Target *target); + static QList<Utils::OutputFormatter *> createFormatters(Target *target); protected: void setFormatterCreator(const std::function<Utils::OutputFormatter *(Target *)> &creator); |