diff options
| author | Laurent Montel <[email protected]> | 2022-05-11 08:17:35 +0200 |
|---|---|---|
| committer | Laurent Montel <[email protected]> | 2022-05-11 08:18:02 +0200 |
| commit | 6a727b1a7d3fb2db91456bbb3ff7fba6e7760353 (patch) | |
| tree | 33c47df8dfdd84fbd074514ea7ec530b472d85c4 /src | |
| parent | 421410513dca779e23f4a018dc39e96447634e45 (diff) | |
Port to QStringView
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/information/informationpanelcontent.cpp | 2 | ||||
| -rw-r--r-- | src/views/tooltips/dolphinfilemetadatawidget.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/information/informationpanelcontent.cpp b/src/panels/information/informationpanelcontent.cpp index a1e8d1b1d..998d2fc9a 100644 --- a/src/panels/information/informationpanelcontent.cpp +++ b/src/panels/information/informationpanelcontent.cpp @@ -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()) { diff --git a/src/views/tooltips/dolphinfilemetadatawidget.cpp b/src/views/tooltips/dolphinfilemetadatawidget.cpp index e914593fb..01877e4ee 100644 --- a/src/views/tooltips/dolphinfilemetadatawidget.cpp +++ b/src/views/tooltips/dolphinfilemetadatawidget.cpp @@ -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()) { |
