forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
|
|||||||
@@ -52,9 +52,6 @@ public:
|
|||||||
|
|
||||||
signals:
|
signals:
|
||||||
void starting();
|
void starting();
|
||||||
|
|
||||||
private:
|
|
||||||
bool supportsReRunning() const override { return false; }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Debugger
|
} // namespace Debugger
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user