This commit is contained in:
徐海 2026-03-24 15:36:17 +08:00
parent 3d7b185afd
commit bb2c189ca2

View File

@ -68,10 +68,14 @@ void MeasureAnalysisParticleCountPlotView::InitViewWorkspace(const QString& proj
} else if (project_dir.mkpath(workspace)) { } else if (project_dir.mkpath(workspace)) {
this->_workspace = workspace; this->_workspace = workspace;
} }
QString win_title = _find_peaks_result_dlg->windowTitle() + QStringLiteral(u"[%1]").arg(project_name);
_find_peaks_result_dlg->setWindowTitle(win_title);
const QString& peaks_result_filename = QDir(workspace).filePath(QStringLiteral(u"自动寻峰结果.csv")); const QString& peaks_result_filename = QDir(workspace).filePath(QStringLiteral(u"自动寻峰结果.csv"));
_find_peaks_result_dlg->SetPeakResultDataFilename(peaks_result_filename); _find_peaks_result_dlg->SetPeakResultDataFilename(peaks_result_filename);
_find_peaks_result_dlg->UpdatePeakResult(); _find_peaks_result_dlg->UpdatePeakResult();
win_title = _batch_energy_scale_dlg->windowTitle() + QStringLiteral(u"[%1]").arg(project_name);
_batch_energy_scale_dlg->setWindowTitle(win_title);
_batch_energy_scale_dlg->SetProjectName(project_name); _batch_energy_scale_dlg->SetProjectName(project_name);
_batch_energy_scale_dlg->SetViewWorkspace(workspace); _batch_energy_scale_dlg->SetViewWorkspace(workspace);
_batch_energy_scale_dlg->SetPeakResultDataModel(_find_peaks_result_dlg->GetPeakResultDataModel()); _batch_energy_scale_dlg->SetPeakResultDataModel(_find_peaks_result_dlg->GetPeakResultDataModel());