aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-29 12:52:49 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-29 12:57:34 -0700
commit571918feaa85fb5dc8ec0cc0c15fcc12d8e155c5 (patch)
tree27f31befda59b6c4bb2eebc4683e8dc48dbee2da /desktop-widgets
parentf159802053a7dddb2f86db2781eb0071b13b5735 (diff)
downloadsubsurface-571918feaa85fb5dc8ec0cc0c15fcc12d8e155c5.tar.gz
Random whitespace cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp37
1 files changed, 18 insertions, 19 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
index 1e35623b8..8872aee12 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
@@ -61,12 +61,12 @@ QUrl FacebookManager::albumListUrl()
QUrl FacebookManager::connectUrl() {
return QUrl("https://www.facebook.com/dialog/oauth?"
- "client_id=427722490709000"
- "&redirect_uri=http://www.facebook.com/connect/login_success.html"
- "&response_type=token,granted_scopes"
- "&display=popup"
- "&scope=publish_actions,user_photos"
- );
+ "client_id=427722490709000"
+ "&redirect_uri=http://www.facebook.com/connect/login_success.html"
+ "&response_type=token,granted_scopes"
+ "&display=popup"
+ "&scope=publish_actions,user_photos"
+ );
}
bool FacebookManager::loggedIn() {
@@ -194,10 +194,9 @@ void FacebookManager::sendDive()
ProfileWidget2 *profile = MainWindow::instance()->graphics();
- QSize size = dialog.profileSize() == SocialNetworkDialog::SMALL ? QSize(800,600)
- : dialog.profileSize() == SocialNetworkDialog::MEDIUM ? QSize(1024,760)
- : dialog.profileSize() == SocialNetworkDialog::BIG ? QSize(1280,1024)
- : QSize();
+ QSize size = dialog.profileSize() == SocialNetworkDialog::SMALL ? QSize(800,600) :
+ dialog.profileSize() == SocialNetworkDialog::MEDIUM ? QSize(1024,760) :
+ dialog.profileSize() == SocialNetworkDialog::BIG ? QSize(1280,1024) : QSize();
auto currSize = profile->size();
profile->resize(size);
@@ -250,15 +249,15 @@ void FacebookManager::uploadFinished()
if (obj.keys().contains("id")){
QMessageBox::information(qApp->activeWindow(),
- tr("Photo upload sucessfull"),
- tr("Your dive profile was updated to Facebook."),
+ tr("Photo upload sucessfull"),
+ tr("Your dive profile was updated to Facebook."),
QMessageBox::Ok);
} else {
QMessageBox::information(qApp->activeWindow(),
- tr("Photo upload failed"),
- tr("Your dive profile was not updated to Facebook, \n "
- "please send the following to the developer. \n"
- + response),
+ tr("Photo upload failed"),
+ tr("Your dive profile was not updated to Facebook, \n "
+ "please send the following to the developer. \n"
+ + response),
QMessageBox::Ok);
}
}
@@ -328,9 +327,9 @@ SocialNetworkDialog::SocialNetworkDialog(QWidget *parent) :
SocialNetworkDialog::Size SocialNetworkDialog::profileSize() const
{
QString currText = ui->profileSize->currentText();
- return currText.startsWith(tr("Small")) ? SMALL :
- currText.startsWith(tr("Medium")) ? MEDIUM :
- /* currText.startsWith(tr("Big")) ? */ BIG;
+ return currText.startsWith(tr("Small")) ? SMALL :
+ currText.startsWith(tr("Medium")) ? MEDIUM :
+ /* currText.startsWith(tr("Big")) ? */ BIG;
}