diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 6c0a3c853e..df15a10c9e 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -153,6 +153,18 @@ int QOperatingSystemVersion::compare(const QOperatingSystemVersion &v1, return QOperatingSystemVersionBase::compare(v1, v2); } +#include "qurl.h" + +QString QUrl::fromAce(const QByteArray &domain) +{ + return fromAce(domain, {}); +} + +QByteArray QUrl::toAce(const QString &domain) +{ + return toAce(domain, {}); +} + #endif // QT_CORE_REMOVED_SINCE(6, 3) #if QT_CORE_REMOVED_SINCE(6, 4) diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index 33082498d1..08385c9629 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -3061,17 +3061,6 @@ QString QUrl::fromAce(const QByteArray &domain, QUrl::AceProcessingOptions optio ForbidLeadingDot /*FIXME: make configurable*/, options); } -#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) -/*! - \since 4.2 - \overload -*/ -QString QUrl::fromAce(const QByteArray &domain) -{ - return fromAce(domain, {}); -} -#endif - /*! \since 6.3 @@ -3095,17 +3084,6 @@ QByteArray QUrl::toAce(const QString &domain, AceProcessingOptions options) .toLatin1(); } -#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) -/*! - \since 4.2 - \overload -*/ -QByteArray QUrl::toAce(const QString &domain) -{ - return toAce(domain, {}); -} -#endif - /*! \internal diff --git a/src/corelib/io/qurl.h b/src/corelib/io/qurl.h index 3001904ef3..db8693fb2a 100644 --- a/src/corelib/io/qurl.h +++ b/src/corelib/io/qurl.h @@ -287,15 +287,12 @@ public: }; Q_DECLARE_FLAGS(AceProcessingOptions, AceProcessingOption) -#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) - static QString fromAce(const QByteArray &, AceProcessingOptions options = {}); - static QByteArray toAce(const QString &, AceProcessingOptions options = {}); -#else +#if QT_CORE_REMOVED_SINCE(6, 3) static QString fromAce(const QByteArray &); static QByteArray toAce(const QString &); - static QString fromAce(const QByteArray &, AceProcessingOptions options); - static QByteArray toAce(const QString &, AceProcessingOptions options); #endif + static QString fromAce(const QByteArray &domain, AceProcessingOptions options = {}); + static QByteArray toAce(const QString &domain, AceProcessingOptions options = {}); static QStringList idnWhitelist(); static QStringList toStringList(const QList &uris, FormattingOptions options = FormattingOptions(PrettyDecoded));