| 456 | |
| 457 | #if defined(LAUNCHER_APPLICATION) |
| 458 | void ExportToZipTask::executeTask() |
| 459 | { |
| 460 | setStatus("Adding files..."); |
| 461 | setProgress(0, m_files.length()); |
| 462 | m_build_zip_future = QtConcurrent::run(QThreadPool::globalInstance(), [this]() { return exportZip(); }); |
| 463 | connect(&m_build_zip_watcher, &QFutureWatcher<ZipResult>::finished, this, &ExportToZipTask::finish); |
| 464 | m_build_zip_watcher.setFuture(m_build_zip_future); |
| 465 | } |
| 466 | |
| 467 | auto ExportToZipTask::exportZip() -> ZipResult |
| 468 | { |