summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qlocale.cpp2
-rw-r--r--src/corelib/text/qlocale.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index 7993c2139d..811df6dcdc 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -996,9 +996,9 @@ QLocale::QLocale(QStringView name)
#if QT_STRINGVIEW_LEVEL < 2
/*!
+ \fn QLocale::QLocale(const QString &name)
\overload
*/
-QLocale::QLocale(const QString &name) : QLocale(qToStringViewIgnoringNull(name)) {}
#endif
/*!
diff --git a/src/corelib/text/qlocale.h b/src/corelib/text/qlocale.h
index 5ba29f6093..b9880496f1 100644
--- a/src/corelib/text/qlocale.h
+++ b/src/corelib/text/qlocale.h
@@ -892,6 +892,7 @@ public:
QLocale();
#if QT_STRINGVIEW_LEVEL < 2
+ QT_CORE_INLINE_SINCE(6, 4)
explicit QLocale(const QString &name);
#endif
explicit QLocale(QStringView name);
@@ -1133,6 +1134,11 @@ Q_DECLARE_SHARED(QLocale)
Q_DECLARE_OPERATORS_FOR_FLAGS(QLocale::NumberOptions)
Q_DECLARE_OPERATORS_FOR_FLAGS(QLocale::LanguageCodeTypes)
+#if QT_CORE_INLINE_IMPL_SINCE(6, 4)
+QLocale::QLocale(const QString &name)
+ : QLocale(qToStringViewIgnoringNull(name)) {}
+#endif
+
#ifndef QT_NO_DATASTREAM
Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QLocale &);
Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QLocale &);