mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Use new QTweetLib 0.5 API for PIN values so leading zeros are respected
This commit is contained in:
parent
e1edd9c5ee
commit
c6cd6821bf
@ -12,15 +12,15 @@ TomahawkOAuthTwitter::TomahawkOAuthTwitter( QNetworkAccessManager *nam, QObject*
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
const QString
|
||||
TomahawkOAuthTwitter::authorizationWidget()
|
||||
{
|
||||
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);
|
||||
if (ok)
|
||||
return i;
|
||||
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 && !str.isEmpty() )
|
||||
return str;
|
||||
|
||||
return 0;
|
||||
return QString();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
~TomahawkOAuthTwitter() {}
|
||||
|
||||
protected:
|
||||
virtual int authorizationWidget();
|
||||
virtual const QString authorizationWidget();
|
||||
|
||||
private slots:
|
||||
void error();
|
||||
|
Loading…
x
Reference in New Issue
Block a user