mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Disable SIP-related strings and UI elements.
This commit is contained in:
@@ -48,7 +48,7 @@ public:
|
|||||||
|
|
||||||
QString prettyName() const { return "Twitter"; }
|
QString prettyName() const { return "Twitter"; }
|
||||||
QString factoryId() const { return "twitteraccount"; }
|
QString factoryId() const { return "twitteraccount"; }
|
||||||
QString description() const { return tr( "Connect to your Twitter followers." ); }
|
QString description() const { return tr( "Send tweets from Tomahawk." ); }
|
||||||
QPixmap icon() const { return QPixmap( ":/twitter-account/twitter-icon.png" ); }
|
QPixmap icon() const { return QPixmap( ":/twitter-account/twitter-icon.png" ); }
|
||||||
AccountTypes types() const { return AccountTypes( StatusPushType ); };
|
AccountTypes types() const { return AccountTypes( StatusPushType ); };
|
||||||
Account* createAccount( const QString& pluginId = QString() );
|
Account* createAccount( const QString& pluginId = QString() );
|
||||||
|
@@ -75,12 +75,13 @@ TwitterConfigWidget::TwitterConfigWidget( TwitterAccount* account, QWidget *pare
|
|||||||
{
|
{
|
||||||
m_ui->twitterStatusLabel->setText( tr( "Status: Credentials saved for %1" ).arg( m_account->credentials()[ "username" ].toString() ) );
|
m_ui->twitterStatusLabel->setText( tr( "Status: Credentials saved for %1" ).arg( m_account->credentials()[ "username" ].toString() ) );
|
||||||
m_ui->twitterAuthenticateButton->setText( tr( "De-authenticate" ) );
|
m_ui->twitterAuthenticateButton->setText( tr( "De-authenticate" ) );
|
||||||
m_ui->twitterSyncGroupBox->setVisible( true );
|
//m_ui->twitterSyncGroupBox->setVisible( true );
|
||||||
m_ui->twitterUserTweetLineEdit->setVisible( false );
|
m_ui->twitterUserTweetLineEdit->setVisible( false );
|
||||||
|
|
||||||
emit twitterAuthed( true );
|
emit twitterAuthed( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_ui->twitterSyncGroupBox->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
TwitterConfigWidget::~TwitterConfigWidget()
|
TwitterConfigWidget::~TwitterConfigWidget()
|
||||||
@@ -137,7 +138,7 @@ TwitterConfigWidget::authenticateVerifyReply( const QTweetUser &user )
|
|||||||
|
|
||||||
m_ui->twitterStatusLabel->setText( tr( "Status: Credentials saved for %1" ).arg( user.screenName() ) );
|
m_ui->twitterStatusLabel->setText( tr( "Status: Credentials saved for %1" ).arg( user.screenName() ) );
|
||||||
m_ui->twitterAuthenticateButton->setText( tr( "De-authenticate" ) );
|
m_ui->twitterAuthenticateButton->setText( tr( "De-authenticate" ) );
|
||||||
m_ui->twitterSyncGroupBox->setVisible( true );
|
//m_ui->twitterSyncGroupBox->setVisible( true );
|
||||||
m_ui->twitterTweetComboBox->setCurrentIndex( 0 );
|
m_ui->twitterTweetComboBox->setCurrentIndex( 0 );
|
||||||
m_ui->twitterUserTweetLineEdit->setVisible( false );
|
m_ui->twitterUserTweetLineEdit->setVisible( false );
|
||||||
m_ui->twitterTweetGotTomahawkButton->setText( tr( "Tweet!" ) );
|
m_ui->twitterTweetGotTomahawkButton->setText( tr( "Tweet!" ) );
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>580</width>
|
<width>380</width>
|
||||||
<height>390</height>
|
<height>180</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@@ -18,8 +18,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>580</width>
|
<width>380</width>
|
||||||
<height>390</height>
|
<height>180</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>The Twitter plugin allows you to discover and play music from your Twitter friends running Tomahawk and post messages to your account.</string>
|
<string>The Twitter plugin allows you to post messages to your Twitter account.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
Reference in New Issue
Block a user