Commit 1da4f4e6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make compile without deprecated method

parent 22e5452e
......@@ -29,7 +29,11 @@ LoadListFromFile::LoadListFromFile(const QString &filename)
const QByteArray content = f.readAll();
f.close();
const QString contextStr = QString::fromUtf8(content);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
mFileList = contextStr.split(QLatin1Char('\n'), QString::SkipEmptyParts);
#else
mFileList = contextStr.split(QLatin1Char('\n'), Qt::SkipEmptyParts);
#endif
mFileList.sort();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment