forked from qt-creator/qt-creator
Utils: Fix build with Qt6
Do not use QStringRef related API, replace with QStringView where appropriate. Adapt to removal of QAbstractItemView::viewOptions(). Task-number: QTCREATORBUG-24098 Change-Id: I5a7a9821984583222083733f91b46df39c21d592 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -152,7 +152,7 @@ QList<FormattedText> AnsiEscapeCodeHandler::parseText(const FormattedText &input
|
||||
}
|
||||
break;
|
||||
}
|
||||
m_pendingText += strippedText.midRef(0, escape.length());
|
||||
m_pendingText += strippedText.mid(0, escape.length());
|
||||
strippedText.remove(0, escape.length());
|
||||
|
||||
// \e[K is not supported. Just strip it.
|
||||
@@ -174,7 +174,7 @@ QList<FormattedText> AnsiEscapeCodeHandler::parseText(const FormattedText &input
|
||||
break;
|
||||
strNumber.clear();
|
||||
}
|
||||
m_pendingText += strippedText.midRef(0, 1);
|
||||
m_pendingText += strippedText.mid(0, 1);
|
||||
strippedText.remove(0, 1);
|
||||
}
|
||||
if (strippedText.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user