mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-30 15:39:59 +01:00
use "%" for string-concatenation
Qt-Docs says it's less memory-usage...
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -339,9 +339,9 @@ void PrintConfigPage::applyConf()
|
||||
epw -> exportProperties().toSettings(settings, prefix);
|
||||
|
||||
// annule l'enregistrement de certaines proprietes non pertinentes
|
||||
settings.remove(prefix + "path");
|
||||
settings.remove(prefix + "format");
|
||||
settings.remove(prefix + "area");
|
||||
settings.remove(prefix % "path");
|
||||
settings.remove(prefix % "format");
|
||||
settings.remove(prefix % "area");
|
||||
}
|
||||
|
||||
/// @return l'icone de cette page
|
||||
|
||||
Reference in New Issue
Block a user