From b3a3cf4738a1cd6616766a5112910885e538f1d7 Mon Sep 17 00:00:00 2001 From: Jannis Voelker Date: Mon, 25 Mar 2024 10:23:34 +0100 Subject: [PATCH] Fix build with Qt 6.5 --- src/backend.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend.cpp b/src/backend.cpp index ac2232d..7f943f6 100644 --- a/src/backend.cpp +++ b/src/backend.cpp @@ -1037,7 +1037,13 @@ QFuture BackEnd::findAllSubtypes(const QString &nodeId, watcher->setFuture(childFuture); QObject::connect(watcher.get(), &QFutureWatcher::finished, this, [promise, watcher, childCount]() { +#if QT_VERSION < QT_VERSION_CHECK(6, 6, 0) + const auto results = watcher->future().results(); + for (const auto &res : results) + promise->addResult(res); +#else promise->addResults(watcher->future().results()); +#endif --*childCount; if (*childCount == 0) promise->finish();