summaryrefslogtreecommitdiffstats
path: root/src/corelib/compat/removed_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/compat/removed_api.cpp')
-rw-r--r--src/corelib/compat/removed_api.cpp36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp
index 566c7b608b..61d3842e64 100644
--- a/src/corelib/compat/removed_api.cpp
+++ b/src/corelib/compat/removed_api.cpp
@@ -113,7 +113,41 @@ QByteArray QtPrivate::QByteArrayList_join(const QByteArrayList *that, const char
return QByteArrayList_join(that, {sep, seplen});
}
+#endif // QT_REMOVED_SINCE(6, 3)
+#if QT_REMOVED_SINCE(6, 4)
+
+#include "qversionnumber.h"
+
+# if QT_POINTER_SIZE != 4
+QVersionNumber QVersionNumber::fromString(const QString &string, int *suffixIndex)
+{
+ qsizetype si;
+ QVersionNumber r = fromString(QLatin1String(string.toLatin1()), &si);
+ if (suffixIndex)
+ *suffixIndex = si;
+ return r;
+}
+
+QVersionNumber QVersionNumber::fromString(QStringView string, int *suffixIndex)
+{
+ qsizetype si;
+ QVersionNumber r = fromString(QLatin1String(string.toLatin1()), &si);
+ if (suffixIndex)
+ *suffixIndex = si;
+ return r;
+}
+
+QVersionNumber QVersionNumber::fromString(QLatin1String string, int *suffixIndex)
+{
+ qsizetype si;
+ QVersionNumber r = fromString(string, &si);
+ if (suffixIndex)
+ *suffixIndex = si;
+ return r;
+}
+# endif // QT_POINTER_SIZE != 4
+
// #include <qotherheader.h>
// // implement removed functions from qotherheader.h
-#endif // QT_REMOVED_SINCE(6, 3)
+#endif // QT_REMOVED_SINCE(6, 4)