mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Use new QTweetLib 0.5 API for PIN values so leading zeros are respected
Conflicts: src/accounts/twitter/tomahawkoauthtwitter.h
This commit is contained in:
committed by
Dominik Schmidt
parent
dd74ce04e6
commit
fab36b2262
@@ -12,15 +12,15 @@ TomahawkOAuthTwitter::TomahawkOAuthTwitter( QNetworkAccessManager *nam, QObject*
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
const QString
|
||||||
TomahawkOAuthTwitter::authorizationWidget()
|
TomahawkOAuthTwitter::authorizationWidget()
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
int i = QInputDialog::getInt(0, tr( "Twitter PIN" ), tr( "After authenticating on Twitter's web site,\nenter the displayed PIN number here:" ), 0, 0, 2147483647, 1, &ok);
|
const QString str = QInputDialog::getText(0, tr( "Twitter PIN" ), tr( "After authenticating on Twitter's web site,\nenter the displayed PIN number here:" ), QLineEdit::Normal, QString(), &ok);
|
||||||
if (ok)
|
if ( ok && !str.isEmpty() )
|
||||||
return i;
|
return str;
|
||||||
|
|
||||||
return 0;
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user