mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
fix deprecated warning QTextStream& QTextStreamFunctions::endl(QTextStream&)
Use Qt::endl instead QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::endl")
This commit is contained in:
parent
c97a239c29
commit
2aff40fd52
@ -67,7 +67,11 @@ bool ConductorNumExport::toCsv()
|
|||||||
if (file.open(QIODevice::WriteOnly | QIODevice::Text))
|
if (file.open(QIODevice::WriteOnly | QIODevice::Text))
|
||||||
{
|
{
|
||||||
QTextStream stream(&file);
|
QTextStream stream(&file);
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) // ### Qt 6: remove
|
||||||
stream << wiresNum() << endl;
|
stream << wiresNum() << endl;
|
||||||
|
#else
|
||||||
|
stream << wiresNum() << &Qt::endl(stream);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return false;
|
return false;
|
||||||
|
@ -151,7 +151,11 @@ int BOMExportDialog::exec()
|
|||||||
if (file.open(QIODevice::WriteOnly | QIODevice::Text))
|
if (file.open(QIODevice::WriteOnly | QIODevice::Text))
|
||||||
{
|
{
|
||||||
QTextStream stream(&file);
|
QTextStream stream(&file);
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) // ### Qt 6: remove
|
||||||
stream << getBom() << endl;
|
stream << getBom() << endl;
|
||||||
|
#else
|
||||||
|
stream << getBom() << &Qt::endl(stream);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user