refactoring

This commit is contained in:
Giovanni Fattori
2026-01-06 00:14:34 +01:00
parent f15b6f8086
commit bd6568d8dd
6 changed files with 1703 additions and 1032 deletions
+5 -4
View File
@@ -3,6 +3,8 @@
#include <vtkImageData.h>
#include <QString>
LocalizationWorker::LocalizationWorker(QObject* parent)
: QObject(parent)
{
@@ -32,9 +34,8 @@ void LocalizationWorker::run(vtkImageData* volume, LocalizationParams params)
emit finished(std::move(markers));
} catch (const std::exception& e) {
// Keep behavior consistent with legacy code: treat as aborted.
// (UI can be extended to show the exception message.)
(void)e;
emit aborted();
emit failed(QString::fromUtf8(e.what()));
} catch (...) {
emit failed(QStringLiteral("Unknown error in localization"));
}
}