Fix Qt5 build

This commit is contained in:
GriffinR 2026-01-25 18:18:54 -05:00
parent 0af40d11dc
commit 6044a381c6

View File

@ -156,8 +156,8 @@ QJSValue ScriptUtility::readTextFile(const QString &path) const {
QString ScriptUtility::writeTextFile(const QString &path, const QString &content, bool append) const {
QFile file(detectProjectPath(path));
QIODeviceBase::OpenMode flags = QIODevice::WriteOnly | QIODevice::Text;
if (append) flags |= QIODeviceBase::Append;
QIODevice::OpenMode flags = QIODevice::WriteOnly | QIODevice::Text;
if (append) flags |= QIODevice::Append;
if (!file.open(flags)) {
return QString("Failed to open file '%1' for writing.").arg(path);
}