use "%" for string-concatenation

Qt-Docs says it's less memory-usage...
This commit is contained in:
plc-user
2025-05-22 21:33:32 +02:00
parent 3a8e6b16f5
commit ad29893842
30 changed files with 167 additions and 167 deletions

View File

@@ -65,7 +65,7 @@ int BOMExportDialog::exec()
//save in csv file in same directory as project by default
QString dir = m_project->currentDir();
if (dir.isEmpty()) dir = QETApp::documentDir();
QString file_name = dir + "/" + tr("nomenclature_") + QString(m_project ->title() + ".csv");
QString file_name = dir % "/" % tr("nomenclature_") % QString(m_project ->title() % ".csv");
QString file_path = QFileDialog::getSaveFileName(this, tr("Enregister sous... "), file_name, tr("Fichiers csv (*.csv)"));
QFile file(file_path);
if (!file_path.isEmpty())
@@ -132,7 +132,7 @@ QString BOMExportDialog::getBom()
}
}
return_string = header_name.join(";") + "\n";
return_string = header_name.join(";") % "\n";
}
//ROWS
@@ -151,7 +151,7 @@ QString BOMExportDialog::getBom()
++i;
}
return_string += values.join(";") + "\n";
return_string += values.join(";") % "\n";
values.clear();
}
}