mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
use "%" for string-concatenation
Qt-Docs says it's less memory-usage...
This commit is contained in:
@@ -49,7 +49,7 @@ bool ConductorNumExport::toCsv()
|
||||
//save in csv file in same directory as project by default
|
||||
QString dir = m_project->currentDir();
|
||||
if (dir.isEmpty()) dir = QETApp::documentDir();
|
||||
QString name = dir + "/" + QObject::tr("numero_de_fileries_") + m_project->title() + ".csv";
|
||||
QString name = dir % "/" % QObject::tr("numero_de_fileries_") % m_project->title() % ".csv";
|
||||
// if(!name.endsWith(".csv")) {
|
||||
// name += ".csv";
|
||||
// }
|
||||
@@ -105,7 +105,7 @@ QString ConductorNumExport::wiresNum() const
|
||||
for (QString key : list)
|
||||
{
|
||||
for (int i=0; i<m_hash.value(key) ; ++i) {
|
||||
csv.append(key + "\n");
|
||||
csv.append(key % "\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user