diff options
| author | Jarek Kobus <[email protected]> | 2025-10-30 15:15:02 +0100 |
|---|---|---|
| committer | Jarek Kobus <[email protected]> | 2025-10-31 12:52:08 +0000 |
| commit | 35a84b81c6f956281994b77a6b9e0b7286035db5 (patch) | |
| tree | 0c43877b7a3986a9821ea2521f99e469e7204989 /src/plugins/autotest/testcodeparser.cpp | |
| parent | 2f27675104e8df5cd41be5d7b6cdcc2dd491953d (diff) | |
TaskTree: Switch to qt-ified QtTaskTree
Remove the old Tasking lib.
Change-Id: Iacb4939cc873e25d6039efae7dd23510a7baa5f9
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testcodeparser.cpp')
| -rw-r--r-- | src/plugins/autotest/testcodeparser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp index ac164e5ecdd..4f6064d3296 100644 --- a/src/plugins/autotest/testcodeparser.cpp +++ b/src/plugins/autotest/testcodeparser.cpp @@ -26,7 +26,7 @@ #include <QLoggingCategory> using namespace Core; -using namespace Tasking; +using namespace QtTaskTree; using namespace Utils; namespace Autotest { @@ -59,7 +59,7 @@ TestCodeParser::TestCodeParser() m_reparseTimer.setSingleShot(true); m_reparseTimer.setInterval(1000); connect(&m_reparseTimer, &QTimer::timeout, this, &TestCodeParser::parsePostponedFiles); - connect(&m_taskTreeRunner, &SingleTaskTreeRunner::aboutToStart, this, [this](TaskTree *taskTree) { + connect(&m_taskTreeRunner, &QSingleTaskTreeRunner::aboutToStart, this, [this](QTaskTree *taskTree) { if (m_withTaskProgress) { auto progress = new TaskProgress(taskTree); progress->setDisplayName(Tr::tr("Scanning for Tests")); @@ -67,7 +67,7 @@ TestCodeParser::TestCodeParser() } emit parsingStarted(); }); - connect(&m_taskTreeRunner, &SingleTaskTreeRunner::done, this, [this](DoneWith result) { + connect(&m_taskTreeRunner, &QSingleTaskTreeRunner::done, this, [this](DoneWith result) { onFinished(result == DoneWith::Success); }); } @@ -417,8 +417,8 @@ void TestCodeParser::scanForTests(const QSet<FilePath> &filePaths, if (!results.isEmpty()) emit testParseResultsReady(results); }; - const Group recipe = For (LoopRepeat(filteredFiles.size())) >> Do { - parallelLimit(limit), + const Group recipe = For (RepeatIterator(filteredFiles.size())) >> Do { + ParallelLimit(limit), storage, onGroupSetup([storage, filteredFiles] { *storage = filteredFiles.cbegin(); }), AsyncTask<TestParseResultPtr>(onSetup, onDone, CallDone::OnSuccess) |
