forked from qt-creator/qt-creator
Merge AnalyzerRunControl::logMessage and RunControl::appendMessage
The tools' ability to hook into processing of the output is retained by making the function virtual. Also remove the unusual overload of the RunControl::appendMessage slot and the signal of the same name by renaming the signal. Change-Id: If3c3cc2dd9c933169dc30b16e3165c9b3cf1440e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -74,7 +74,7 @@ LocalQmlProfilerRunner::LocalQmlProfilerRunner(const Configuration &configuratio
|
||||
connect(this, &LocalQmlProfilerRunner::stopped,
|
||||
engine, &QmlProfilerRunControl::notifyRemoteFinished);
|
||||
connect(this, &LocalQmlProfilerRunner::appendMessage,
|
||||
engine, &QmlProfilerRunControl::logApplicationMessage);
|
||||
engine, &QmlProfilerRunControl::appendMessage);
|
||||
connect(engine, &Debugger::AnalyzerRunControl::starting,
|
||||
this, &LocalQmlProfilerRunner::start);
|
||||
connect(engine, &RunControl::finished,
|
||||
|
||||
@@ -197,9 +197,9 @@ void QmlProfilerRunControl::cancelProcess()
|
||||
emit finished();
|
||||
}
|
||||
|
||||
void QmlProfilerRunControl::logApplicationMessage(const QString &msg, Utils::OutputFormat format)
|
||||
void QmlProfilerRunControl::appendMessage(const QString &msg, Utils::OutputFormat format)
|
||||
{
|
||||
appendMessage(msg, format);
|
||||
AnalyzerRunControl::appendMessage(msg, format);
|
||||
d->m_outputParser.processOutput(msg);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
bool isRunning() const override;
|
||||
void cancelProcess();
|
||||
void notifyRemoteFinished() override;
|
||||
void logApplicationMessage(const QString &msg, Utils::OutputFormat format) override;
|
||||
void appendMessage(const QString &msg, Utils::OutputFormat format) override;
|
||||
|
||||
signals:
|
||||
void processRunning(Utils::Port port);
|
||||
|
||||
Reference in New Issue
Block a user