mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 18:50:52 +01:00
Improve last commit
This commit is contained in:
@@ -66,7 +66,11 @@ bool nomenclature::saveToCSVFile()
|
||||
}
|
||||
if (file.open(QIODevice::WriteOnly | QIODevice::Text)){
|
||||
QTextStream stream(&file);
|
||||
stream << getNomenclature() << "\n";
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) // ### Qt 6: remove
|
||||
stream << getNomenclature() << endl;
|
||||
#else
|
||||
stream << getNomenclature() << &Qt::endl(stream);
|
||||
#endif
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user