1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

* Disable Facebook / Twitter button for 0.5 release. Renamed OK to Share.

This commit is contained in:
Christian Muehlhaeuser 2012-06-12 05:27:45 +02:00
parent 2bb175860b
commit f7d3c48b25

View File

@ -55,7 +55,9 @@ SocialWidget::SocialWidget( QWidget* parent )
#endif
ui->charsLeftLabel->setForegroundRole( QPalette::HighlightedText );
ui->buttonBox->button( QDialogButtonBox::Ok )->setText( tr( "Share" ) );
m_parent->installEventFilter( this );
connect( ui->buttonBox, SIGNAL( accepted() ), SLOT( accept() ) );
@ -66,6 +68,10 @@ SocialWidget::SocialWidget( QWidget* parent )
connect( GlobalActionManager::instance(), SIGNAL( shortLinkReady( QUrl, QUrl, QVariant ) ), SLOT( onShortLinkReady( QUrl, QUrl, QVariant ) ) );
onChanged();
ui->twitterButton->setChecked( true );
ui->twitterButton->setVisible( false );
ui->facebookButton->setVisible( false );
}