From 2766322de37adba37e0d0d4b0054e55edff01c6c Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Wed, 12 Aug 2020 13:16:27 +0200 Subject: Move QStringRef and remains to Qt5Compat Export some private functions from QUtf8 to resolve undefined symbols in Qt5Compat after moving QStringRef. Task-number: QTBUG-84437 Change-Id: I9046dcb14ed520d8868a511d79da6e721e26f72b Reviewed-by: Lars Knoll --- examples/widgets/gallery/widgetgallery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/widgets/gallery') diff --git a/examples/widgets/gallery/widgetgallery.cpp b/examples/widgets/gallery/widgetgallery.cpp index 3bbe8943d1..b2973fad4c 100644 --- a/examples/widgets/gallery/widgetgallery.cpp +++ b/examples/widgets/gallery/widgetgallery.cpp @@ -335,8 +335,8 @@ QToolBox *WidgetGallery::createTextToolBox() "How I wonder what you are!\n"); // Create centered/italic HTML rich text QString richText = QLatin1String(""); - for (const auto &line : plainText.splitRef(QLatin1Char('\n'))) - richText += QLatin1String("
") + line + QLatin1String("
"); + for (const auto &line : QStringView{ plainText }.split(QLatin1Char('\n'))) + richText += QString::fromLatin1("
%1
").arg(line); richText += QLatin1String("
"); auto textEdit = createWidget1(richText, "textEdit"); -- cgit v1.2.3