Commit 6a727b1a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QStringView

parent 42141051
Pipeline #174633 passed with stage
in 5 minutes and 53 seconds
......@@ -479,7 +479,7 @@ void InformationPanelContent::setNameLabelText(const QString& text)
QTextLine line = textLayout.createLine();
while (line.isValid()) {
line.setLineWidth(m_nameLabel->width());
wrappedText += processedText.midRef(line.textStart(), line.textLength());
wrappedText += QStringView(processedText).mid(line.textStart(), line.textLength());
line = textLayout.createLine();
if (line.isValid()) {
......
......@@ -113,7 +113,7 @@ void DolphinFileMetaDataWidget::setName(const QString& name)
QTextLine line = textLayout.createLine();
while (line.isValid()) {
line.setLineWidth(m_name->maximumWidth());
wrappedText += processedName.midRef(line.textStart(), line.textLength());
wrappedText += QStringView(processedName).mid(line.textStart(), line.textLength());
line = textLayout.createLine();
if (line.isValid()) {
......
Supports Markdown
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