Analyzer: Move supportsReRunning() down to individual runControls

This maintains current behavior by letting all subclasses return 'false'.
This might be too pessimistic, but can be fixed on a per-tool base

Change-Id: I71ac1b1e2cc98cfb1c5b76bc7c60a3240c5d1dcd
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
hjk
2016-05-30 14:54:19 +02:00
parent c472241ad1
commit 1663b44a7f
4 changed files with 3 additions and 3 deletions

View File

@@ -66,6 +66,7 @@ public:
bool isRunning() const override; bool isRunning() const override;
bool success() const { return m_success; } // For testing. bool success() const { return m_success; } // For testing.
bool supportsReRunning() const override { return false; }
signals: signals:
void newDiagnosticsAvailable(const QList<Diagnostic> &diagnostics); void newDiagnosticsAvailable(const QList<Diagnostic> &diagnostics);

View File

@@ -52,9 +52,6 @@ public:
signals: signals:
void starting(); void starting();
private:
bool supportsReRunning() const override { return false; }
}; };
} // namespace Debugger } // namespace Debugger

View File

@@ -52,6 +52,7 @@ public:
void cancelProcess(); void cancelProcess();
void notifyRemoteFinished() override; void notifyRemoteFinished() override;
void appendMessage(const QString &msg, Utils::OutputFormat format) override; void appendMessage(const QString &msg, Utils::OutputFormat format) override;
bool supportsReRunning() const override { return false; }
signals: signals:
void processRunning(Utils::Port port); void processRunning(Utils::Port port);

View File

@@ -48,6 +48,7 @@ public:
void start() override; void start() override;
StopResult stop() override; StopResult stop() override;
bool isRunning() const override; bool isRunning() const override;
bool supportsReRunning() const override { return false; }
QString executable() const; QString executable() const;