Index: sources/storage/Logger.cpp =================================================================== diff -u -r3e682c5afdadcf4dd2006e3d975fbee58e48619e -rc2f474ff07c98aa350c445a2474976a3cf985f40 --- sources/storage/Logger.cpp (.../Logger.cpp) (revision 3e682c5afdadcf4dd2006e3d975fbee58e48619e) +++ sources/storage/Logger.cpp (.../Logger.cpp) (revision c2f474ff07c98aa350c445a2474976a3cf985f40) @@ -467,7 +467,11 @@ _exportLogsType = eLogAppED; LOG_DEBUG(QString("Export %1 start").arg(_logNames[_exportLogsType])); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) QFuture future = QtConcurrent::run(&Logger::exportLogs, this, vExportList); +#else + QFuture future = QtConcurrent::run(this, &Logger::exportLogs, vExportList); +#endif _exportLogsWatcher.setFuture(future); return true; } @@ -484,7 +488,11 @@ _exportLogsType = eLogDebug; LOG_DEBUG(QString("Export %1 start").arg(_logNames[_exportLogsType])); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) QFuture future = QtConcurrent::run(&Logger::exportErrs, this, vExportList); +#else + QFuture future = QtConcurrent::run(this, &Logger::exportErrs, vExportList); +#endif _exportLogsWatcher.setFuture(future); return true; } @@ -501,7 +509,11 @@ _exportLogsType = eLogTrtmt; LOG_DEBUG(QString("Export %1 start").arg(_logNames[_exportLogsType])); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) QFuture future = QtConcurrent::run(&Logger::exportTrts, this, vExportList); +#else + QFuture future = QtConcurrent::run(this, &Logger::exportTrts, vExportList); +#endif _exportLogsWatcher.setFuture(future); return true; } @@ -657,7 +669,11 @@ { LOG_DEBUG("Remove Logs Starting"); emit didRemoveLogs(true); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) QFuture mFuture = QtConcurrent::run(&Logger::removeLogs, this, vLogType); +#else + QFuture mFuture = QtConcurrent::run(this, &Logger::removeLogs, vLogType); +#endif _removeLogsWatcher.setFuture(mFuture); return true; }