summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauth2authorizationcodeflow.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2025-01-13 13:35:33 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2025-01-16 08:19:28 +0200
commiteda31c62f371b5006a511f59ffe916c6e9e63111 (patch)
treeeb83c162e360550e3a9414ca0cf33ac2648f1543 /src/oauth/qoauth2authorizationcodeflow.cpp
parent1aca648496e4b41c5ae8198f4e683ec72b6bf067 (diff)
Make refreshAccessToken() a regular deprecation without Qt 7 removal
Qt 6.9 introduces common baseclass method, refreshTokens() whose implementation can be overridden by classes. Marking the refreshAccessToken() as deprecated, and not automatically removing it, is adequate and minimizes user impact. Found in API review. Amends 2b1e3419c5ef43e964f40dbe79d7a7da0de5aa57 Pick-to: 6.9 Change-Id: I67fa85a4225500d5fc0fcb882e3fc90a5c63913f Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/oauth/qoauth2authorizationcodeflow.cpp')
-rw-r--r--src/oauth/qoauth2authorizationcodeflow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/oauth/qoauth2authorizationcodeflow.cpp b/src/oauth/qoauth2authorizationcodeflow.cpp
index f533287..7a9c23f 100644
--- a/src/oauth/qoauth2authorizationcodeflow.cpp
+++ b/src/oauth/qoauth2authorizationcodeflow.cpp
@@ -370,17 +370,19 @@ void QOAuth2AuthorizationCodeFlow::grant()
resourceOwnerAuthorization(d->authorizationUrl);
}
+#if QT_DEPRECATED_SINCE(6, 13)
/*!
+ \deprecated [6.13] Use QAbstractOAuth2::refreshTokens() instead.
+
Call this function to refresh the token.
This function calls \l {refreshTokensImplementation()}.
*/
-#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
void QOAuth2AuthorizationCodeFlow::refreshAccessToken()
{
refreshTokensImplementation();
}
-#endif
+#endif // QT_DEPRECATED_SINCE(6, 13)
/*!
\since 6.9