From f7d3c48b2559318c1b0f2cede80bb00630ac8579 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 12 Jun 2012 05:27:45 +0200 Subject: [PATCH] * Disable Facebook / Twitter button for 0.5 release. Renamed OK to Share. --- src/SocialWidget.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/SocialWidget.cpp b/src/SocialWidget.cpp index 09cad1014..c05c2a497 100644 --- a/src/SocialWidget.cpp +++ b/src/SocialWidget.cpp @@ -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 ); }