diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-11-13 11:06:27 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-11-16 10:14:32 +0000 |
commit | 0e278e9efeffef2de86decfc5e415a94d7234b4f (patch) | |
tree | ef4ca0117d5ab3dc65e7f707a9d626cc2dd48a0d /src/plugins/qbsprojectmanager | |
parent | ca29cbfc8a4cd2fad3556f0c98febc4692894265 (diff) | |
download | qt-creator-0e278e9efeffef2de86decfc5e415a94d7234b4f.tar.gz |
ProjectConfiguration: Sprinkle override and explicit over the code
Change-Id: I2aa3a32a0d30f1d122977d94d4109227dea6bbd7
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/qbsprojectmanager')
-rw-r--r-- | src/plugins/qbsprojectmanager/qbsbuildstep.h | 18 | ||||
-rw-r--r-- | src/plugins/qbsprojectmanager/qbscleanstep.h | 18 | ||||
-rw-r--r-- | src/plugins/qbsprojectmanager/qbsinstallstep.h | 18 | ||||
-rw-r--r-- | src/plugins/qbsprojectmanager/qbsrunconfiguration.h | 18 |
4 files changed, 36 insertions, 36 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsbuildstep.h b/src/plugins/qbsprojectmanager/qbsbuildstep.h index debf9c2ef6..1d06e91c17 100644 --- a/src/plugins/qbsprojectmanager/qbsbuildstep.h +++ b/src/plugins/qbsprojectmanager/qbsbuildstep.h @@ -51,18 +51,18 @@ class QbsBuildStep : public ProjectExplorer::BuildStep Q_OBJECT public: - QbsBuildStep(ProjectExplorer::BuildStepList *bsl); + explicit QbsBuildStep(ProjectExplorer::BuildStepList *bsl); QbsBuildStep(ProjectExplorer::BuildStepList *bsl, const QbsBuildStep *other); - ~QbsBuildStep(); + ~QbsBuildStep() override; - bool init(); + bool init() override; - void run(QFutureInterface<bool> &fi); + void run(QFutureInterface<bool> &fi) override; - ProjectExplorer::BuildStepConfigWidget *createConfigWidget(); + ProjectExplorer::BuildStepConfigWidget *createConfigWidget() override; - bool runInGuiThread() const; - void cancel(); + bool runInGuiThread() const override; + void cancel() override; QVariantMap qbsConfiguration() const; void setQbsConfiguration(const QVariantMap &config); @@ -77,8 +77,8 @@ public: bool isQmlDebuggingEnabled() const; - bool fromMap(const QVariantMap &map); - QVariantMap toMap() const; + bool fromMap(const QVariantMap &map) override; + QVariantMap toMap() const override; signals: void qbsConfigurationChanged(); diff --git a/src/plugins/qbsprojectmanager/qbscleanstep.h b/src/plugins/qbsprojectmanager/qbscleanstep.h index da48a47e83..9f8ba25c45 100644 --- a/src/plugins/qbsprojectmanager/qbscleanstep.h +++ b/src/plugins/qbsprojectmanager/qbscleanstep.h @@ -48,21 +48,21 @@ class QbsCleanStep : public ProjectExplorer::BuildStep Q_OBJECT public: - QbsCleanStep(ProjectExplorer::BuildStepList *bsl); + explicit QbsCleanStep(ProjectExplorer::BuildStepList *bsl); QbsCleanStep(ProjectExplorer::BuildStepList *bsl, const QbsCleanStep *other); - ~QbsCleanStep(); + ~QbsCleanStep() override; - bool init(); + bool init() override; - void run(QFutureInterface<bool> &fi); + void run(QFutureInterface<bool> &fi) override; - ProjectExplorer::BuildStepConfigWidget *createConfigWidget(); + ProjectExplorer::BuildStepConfigWidget *createConfigWidget() override; - bool runInGuiThread() const; - void cancel(); + bool runInGuiThread() const override; + void cancel() override; - bool fromMap(const QVariantMap &map); - QVariantMap toMap() const; + bool fromMap(const QVariantMap &map) override; + QVariantMap toMap() const override; bool dryRun() const; bool keepGoing() const; diff --git a/src/plugins/qbsprojectmanager/qbsinstallstep.h b/src/plugins/qbsprojectmanager/qbsinstallstep.h index 762c8add78..c43a030e7f 100644 --- a/src/plugins/qbsprojectmanager/qbsinstallstep.h +++ b/src/plugins/qbsprojectmanager/qbsinstallstep.h @@ -48,21 +48,21 @@ class QbsInstallStep : public ProjectExplorer::BuildStep Q_OBJECT public: - QbsInstallStep(ProjectExplorer::BuildStepList *bsl); + explicit QbsInstallStep(ProjectExplorer::BuildStepList *bsl); QbsInstallStep(ProjectExplorer::BuildStepList *bsl, const QbsInstallStep *other); - ~QbsInstallStep(); + ~QbsInstallStep() override; - bool init(); + bool init() override; - void run(QFutureInterface<bool> &fi); + void run(QFutureInterface<bool> &fi) override; - ProjectExplorer::BuildStepConfigWidget *createConfigWidget(); + ProjectExplorer::BuildStepConfigWidget *createConfigWidget() override; - bool runInGuiThread() const; - void cancel(); + bool runInGuiThread() const override; + void cancel() override; - bool fromMap(const QVariantMap &map); - QVariantMap toMap() const; + bool fromMap(const QVariantMap &map) override; + QVariantMap toMap() const override; qbs::InstallOptions installOptions() const; QString installRoot() const; diff --git a/src/plugins/qbsprojectmanager/qbsrunconfiguration.h b/src/plugins/qbsprojectmanager/qbsrunconfiguration.h index 5d04c9da35..b2a97162d5 100644 --- a/src/plugins/qbsprojectmanager/qbsrunconfiguration.h +++ b/src/plugins/qbsprojectmanager/qbsrunconfiguration.h @@ -73,20 +73,20 @@ class QbsRunConfiguration : public ProjectExplorer::LocalApplicationRunConfigura public: QbsRunConfiguration(ProjectExplorer::Target *parent, Core::Id id); - bool isEnabled() const; - QString disabledReason() const; - QWidget *createConfigurationWidget(); + bool isEnabled() const override; + QString disabledReason() const override; + QWidget *createConfigurationWidget() override; - QString executable() const; - ProjectExplorer::ApplicationLauncher::Mode runMode() const; - QString workingDirectory() const; - QString commandLineArguments() const; + QString executable() const override; + ProjectExplorer::ApplicationLauncher::Mode runMode() const override; + QString workingDirectory() const override; + QString commandLineArguments() const override; - Utils::OutputFormatter *createOutputFormatter() const; + Utils::OutputFormatter *createOutputFormatter() const override; void setRunMode(ProjectExplorer::ApplicationLauncher::Mode runMode); - void addToBaseEnvironment(Utils::Environment &env) const; + void addToBaseEnvironment(Utils::Environment &env) const override; QString uniqueProductName() const; bool isConsoleApplication() const; |