Fix use of Qt 5.14 enum

Signed-off-by: Mitchell Skaggs <skaggsm333@gmail.com>
This commit is contained in:
Mitchell Skaggs 2022-08-09 00:17:53 -05:00
parent a14476c5fb
commit 94df4ceb36
No known key found for this signature in database
GPG Key ID: 4EB0FECB84AE8967

View File

@ -63,7 +63,11 @@ LoggedProcess::~LoggedProcess()
QStringList reprocess(const QByteArray& data, QTextDecoder& decoder)
{
auto str = decoder.toUnicode(data);
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed, QString::SkipEmptyParts);
#else
auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed, Qt::SkipEmptyParts);
#endif
return lines;
}