forked from qt-creator/qt-creator
ProjectExplorer: Sprinkle overrides over the code
Sprinkle overrides over code derived from classes in ProjectExplorer Change-Id: Ia4cc25649f7dc00b0ea126d8176a59afbc5ed574 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -41,18 +41,18 @@ class CallgrindRunControl : public ValgrindRunControl
|
||||
public:
|
||||
CallgrindRunControl(ProjectExplorer::RunConfiguration *runConfiguration);
|
||||
|
||||
bool startEngine();
|
||||
bool startEngine() override;
|
||||
|
||||
Valgrind::Callgrind::ParseData *takeParserData();
|
||||
|
||||
bool canPause() const { return true; }
|
||||
bool canPause() const override { return true; }
|
||||
|
||||
public slots:
|
||||
/// controller actions
|
||||
void dump();
|
||||
void reset();
|
||||
void pause();
|
||||
void unpause();
|
||||
void pause() override;
|
||||
void unpause() override;
|
||||
|
||||
/// marks the callgrind process as paused
|
||||
/// calls pause() and unpause() if there's an active run
|
||||
@@ -61,9 +61,9 @@ public slots:
|
||||
void setToggleCollectFunction(const QString &toggleCollectFunction);
|
||||
|
||||
protected:
|
||||
virtual QStringList toolArguments() const;
|
||||
virtual QString progressTitle() const;
|
||||
virtual Valgrind::ValgrindRunner *runner();
|
||||
QStringList toolArguments() const override;
|
||||
QString progressTitle() const override;
|
||||
Valgrind::ValgrindRunner *runner() override;
|
||||
|
||||
signals:
|
||||
void parserDataReady(CallgrindRunControl *engine);
|
||||
|
||||
@@ -46,8 +46,8 @@ public:
|
||||
ValgrindRunControl(ProjectExplorer::RunConfiguration *runConfiguration,
|
||||
Core::Id runMode);
|
||||
|
||||
bool startEngine();
|
||||
void stopEngine();
|
||||
bool startEngine() override;
|
||||
void stopEngine() override;
|
||||
|
||||
QString executable() const;
|
||||
|
||||
|
||||
@@ -40,12 +40,11 @@ public:
|
||||
explicit ValgrindRunControlFactory(QObject *parent = 0);
|
||||
|
||||
// IRunControlFactory implementation
|
||||
bool canRun(RunConfiguration *runConfiguration, Core::Id mode) const;
|
||||
bool canRun(RunConfiguration *runConfiguration, Core::Id mode) const override;
|
||||
|
||||
ProjectExplorer::RunControl *create(RunConfiguration *runConfiguration,
|
||||
Core::Id mode,
|
||||
QString *errorMessage);
|
||||
ProjectExplorer::IRunConfigurationAspect *createRunConfigurationAspect(ProjectExplorer::RunConfiguration *rc);
|
||||
ProjectExplorer::RunControl *create(RunConfiguration *runConfiguration, Core::Id mode,
|
||||
QString *errorMessage) override;
|
||||
ProjectExplorer::IRunConfigurationAspect *createRunConfigurationAspect(ProjectExplorer::RunConfiguration *rc) override;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user