| 61 | } |
| 62 | |
| 63 | QStringList reprocess(const QByteArray& data, QTextDecoder& decoder) |
| 64 | { |
| 65 | auto str = decoder.toUnicode(data); |
| 66 | #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) |
| 67 | auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed, QString::SkipEmptyParts); |
| 68 | #else |
| 69 | auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed, Qt::SkipEmptyParts); |
| 70 | #endif |
| 71 | return lines; |
| 72 | } |
| 73 | |
| 74 | void LoggedProcess::on_stdErr() |
| 75 | { |