aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-11-15 10:33:31 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2023-11-17 09:44:20 +0000
commit659f0f000c7e41210f5318d67ed23ee68c7dc16b (patch)
tree147417a45ed388e929f5fc61519c75ed157cdd8b /src/plugins/studiowelcome
parent6f3bc431fc5a0bcde258f53d8c6e1d2d5ad80539 (diff)
TaskTree: Unify TaskInterface::done(DoneResult) signal
Change the argument of TaskInterface::done() signal from bool into DoneResult. Make it consistent with other TaskTree API. Introduce toDoneResult(bool success) helper. Change-Id: I7b3041d7c1ed0317c76adbc1fd37448231e85f82 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/studiowelcome')
-rw-r--r--src/plugins/studiowelcome/examplecheckout.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/studiowelcome/examplecheckout.cpp b/src/plugins/studiowelcome/examplecheckout.cpp
index 7b13c59fa8..d0e3082491 100644
--- a/src/plugins/studiowelcome/examplecheckout.cpp
+++ b/src/plugins/studiowelcome/examplecheckout.cpp
@@ -37,6 +37,7 @@
#include <algorithm>
+using namespace Tasking;
using namespace Utils;
void ExampleCheckout::registerTypes()
@@ -124,8 +125,9 @@ DataModelDownloader::DataModelDownloader(QObject * /* parent */)
auto unarchiver = new Unarchiver;
unarchiver->setSourceAndCommand(*sourceAndCommand);
unarchiver->setDestDir(tempFilePath());
- QObject::connect(unarchiver, &Unarchiver::done, this, [this, unarchiver](bool success) {
- QTC_CHECK(success);
+ QObject::connect(unarchiver, &Unarchiver::done, this,
+ [this, unarchiver](DoneResult result) {
+ QTC_CHECK(result == DoneResult::Success);
unarchiver->deleteLater();
emit finished();
});