summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauth2authorizationcodeflow.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2024-07-31 16:16:26 +0300
committerJuha Vuolle <juha.vuolle@qt.io>2024-08-23 14:44:26 +0300
commitbb03cf1627a64e5351214b04aee84d6d7d5cef07 (patch)
tree6bd84a55d97f9590d81628a922d1d6d9e65f098a /src/oauth/qoauth2authorizationcodeflow.cpp
parentcbc09724824c2ae38c74ad5d5d4188168843a777 (diff)
Deprecate QAbstractOAuth2::scope property
The replacing 'requestedScope' and 'grantedScope' provide better separation of roles, and also allow using string lists, making for example checking the granted properties more convenient. Change-Id: I51cebaffa7fbc97c64993d5b1d7bf932a35d0bc7 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/oauth/qoauth2authorizationcodeflow.cpp')
-rw-r--r--src/oauth/qoauth2authorizationcodeflow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/oauth/qoauth2authorizationcodeflow.cpp b/src/oauth/qoauth2authorizationcodeflow.cpp
index acefb20..297d125 100644
--- a/src/oauth/qoauth2authorizationcodeflow.cpp
+++ b/src/oauth/qoauth2authorizationcodeflow.cpp
@@ -173,10 +173,12 @@ void QOAuth2AuthorizationCodeFlowPrivate::_q_accessTokenRequestFinished(const QV
setGrantedScope(requestedScope);
} else {
setGrantedScope(splitGrantedScope);
+#if QT_DEPRECATED_SINCE(6, 11)
if (grantedScope != scope) {
scope = grantedScope;
- Q_EMIT q->scopeChanged(scope);
+ QT_IGNORE_DEPRECATIONS(Q_EMIT q->scopeChanged(scope);)
}
+#endif
}
const QDateTime currentDateTime = QDateTime::currentDateTime();