mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10: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)){
|
if (file.open(QIODevice::WriteOnly | QIODevice::Text)){
|
||||||
QTextStream stream(&file);
|
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;
|
else return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user