Commit 6a68722a authored by Vincent Pinon's avatar Vincent Pinon
Browse files

Allow building with Qt5.11 (debian buster)

parent 214cd6d5
......@@ -99,8 +99,11 @@ ProviderModel::ProviderModel(const QString &path)
m_oauth2.setAccessTokenUrl(QUrl(ouath2Info["accessTokenUrl"].toString()));
m_oauth2.setClientIdentifier(ouath2Info["clientId"].toString());
m_oauth2.setClientIdentifierSharedKey(m_clientkey);
#if QT_VERSION >= QT_VERSION_CHECK(5,12,0)
connect(&m_oauth2, &QOAuth2AuthorizationCodeFlow::refreshTokenChanged, this, [&](const QString &refreshToken){
#else
connect(&m_oauth2, &QOAuth2AuthorizationCodeFlow::tokenChanged, this, [&](const QString &refreshToken){
#endif
KSharedConfigPtr config = KSharedConfig::openConfig();
KConfigGroup authGroup(config, "OAuth2Authentication" + m_name);
authGroup.writeEntry(QStringLiteral("refresh_token"), refreshToken);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment