diff options
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/text/qstring.cpp | 9 | ||||
-rw-r--r-- | src/corelib/text/qstring.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 4ca66a2634..326435f28f 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -6195,7 +6195,14 @@ QString& QString::fill(QChar ch, qsizetype size) \overload operator+=() - Appends the Latin-1 string \a str to this string. + Appends the Latin-1 string view \a str to this string. +*/ + +/*! \fn QString &QString::operator+=(QUtf8StringView str) + \since 6.5 + \overload operator+=() + + Appends the UTF-8 string view \a str to this string. */ /*! \fn QString &QString::operator+=(const QByteArray &ba) diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index 74dcf3986a..16ab13e1e9 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -706,6 +706,7 @@ public: inline QString &operator+=(const QString &s) { return append(s); } inline QString &operator+=(QStringView v) { return append(v); } inline QString &operator+=(QLatin1StringView s) { return append(s); } + QString &operator+=(QUtf8StringView s) { return append(s); } QString &remove(qsizetype i, qsizetype len); QString &remove(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive); |