aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/boot2qt/qdbrunconfiguration.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-12-05 16:28:52 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2019-12-05 16:35:48 +0000
commitcf9249a905a6aa7bec904fc51b9ee7d9ad39dd06 (patch)
treea8873cf7e9f864d44d97cab7ef62c62907ac4623 /src/plugins/boot2qt/qdbrunconfiguration.h
parent85b7833a3e15c83598010f4fd807d29fa847dcb6 (diff)
ProjectExplorer: Rework RunConfiguration::isConfigured()
The old code had a number of problems: - There was one function isConfigured() to report whether the run config has issues, and a second one, ensureConfigured(), needed to be called to retrieve the details. At least one subclass implementor forgot to re-implement the first one, so the second one was never called. - The ensureConfigured() function could show a dialog and thereby delay execution of the run configuration, leading to additional state and a more complicated execution logic. Also, the dialog duplicated the run configuration UI. We now have only one function returning a list of Task objects. If the list is not empty, we present them to the user in a non-blocking way and abort the execution. Change-Id: I5f2a8126a2c1bd2ca51345b9e37b979bfc0c0b98 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/boot2qt/qdbrunconfiguration.h')
-rw-r--r--src/plugins/boot2qt/qdbrunconfiguration.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/boot2qt/qdbrunconfiguration.h b/src/plugins/boot2qt/qdbrunconfiguration.h
index 9d31669f654..f1a0bf0443d 100644
--- a/src/plugins/boot2qt/qdbrunconfiguration.h
+++ b/src/plugins/boot2qt/qdbrunconfiguration.h
@@ -45,9 +45,9 @@ class QdbRunConfiguration : public ProjectExplorer::RunConfiguration
public:
QdbRunConfiguration(ProjectExplorer::Target *target, Core::Id id);
- ConfigurationState ensureConfigured(QString *errorMessage) override;
-
private:
+ ProjectExplorer::Tasks checkForIssues() const override;
+
QString defaultDisplayName() const;
};