From 94df4ceb36513ee07a1821cb06debb4e6a4bb05c Mon Sep 17 00:00:00 2001 From: Mitchell Skaggs Date: Tue, 9 Aug 2022 00:17:53 -0500 Subject: [PATCH] Fix use of Qt 5.14 enum Signed-off-by: Mitchell Skaggs --- launcher/LoggedProcess.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/launcher/LoggedProcess.cpp b/launcher/LoggedProcess.cpp index 5ad310a3..6447f5c6 100644 --- a/launcher/LoggedProcess.cpp +++ b/launcher/LoggedProcess.cpp @@ -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; }