use toDouble instead of toInt for Qt 5.1 compatibility

This commit is contained in:
Stephen Birarda 2014-02-24 15:27:12 -08:00
parent 672c6a9ed1
commit 6d56ab3a30

View file

@ -22,7 +22,7 @@ OAuthAccessToken::OAuthAccessToken() :
OAuthAccessToken::OAuthAccessToken(const QJsonObject& jsonObject) :
token(jsonObject["access_token"].toString()),
refreshToken(jsonObject["refresh_token"].toString()),
expiryTimestamp(QDateTime::currentMSecsSinceEpoch() + jsonObject["expires_in"].toInt()),
expiryTimestamp(QDateTime::currentMSecsSinceEpoch() + jsonObject["expires_in"].toDouble()),
tokenType(jsonObject["token_type"].toString())
{