mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Random whitespace cleanup
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f159802053
commit
571918feaa
1 changed files with 18 additions and 19 deletions
|
@ -61,12 +61,12 @@ QUrl FacebookManager::albumListUrl()
|
||||||
|
|
||||||
QUrl FacebookManager::connectUrl() {
|
QUrl FacebookManager::connectUrl() {
|
||||||
return QUrl("https://www.facebook.com/dialog/oauth?"
|
return QUrl("https://www.facebook.com/dialog/oauth?"
|
||||||
"client_id=427722490709000"
|
"client_id=427722490709000"
|
||||||
"&redirect_uri=http://www.facebook.com/connect/login_success.html"
|
"&redirect_uri=http://www.facebook.com/connect/login_success.html"
|
||||||
"&response_type=token,granted_scopes"
|
"&response_type=token,granted_scopes"
|
||||||
"&display=popup"
|
"&display=popup"
|
||||||
"&scope=publish_actions,user_photos"
|
"&scope=publish_actions,user_photos"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FacebookManager::loggedIn() {
|
bool FacebookManager::loggedIn() {
|
||||||
|
@ -194,10 +194,9 @@ void FacebookManager::sendDive()
|
||||||
|
|
||||||
ProfileWidget2 *profile = MainWindow::instance()->graphics();
|
ProfileWidget2 *profile = MainWindow::instance()->graphics();
|
||||||
|
|
||||||
QSize size = dialog.profileSize() == SocialNetworkDialog::SMALL ? QSize(800,600)
|
QSize size = dialog.profileSize() == SocialNetworkDialog::SMALL ? QSize(800,600) :
|
||||||
: dialog.profileSize() == SocialNetworkDialog::MEDIUM ? QSize(1024,760)
|
dialog.profileSize() == SocialNetworkDialog::MEDIUM ? QSize(1024,760) :
|
||||||
: dialog.profileSize() == SocialNetworkDialog::BIG ? QSize(1280,1024)
|
dialog.profileSize() == SocialNetworkDialog::BIG ? QSize(1280,1024) : QSize();
|
||||||
: QSize();
|
|
||||||
|
|
||||||
auto currSize = profile->size();
|
auto currSize = profile->size();
|
||||||
profile->resize(size);
|
profile->resize(size);
|
||||||
|
@ -250,15 +249,15 @@ void FacebookManager::uploadFinished()
|
||||||
|
|
||||||
if (obj.keys().contains("id")){
|
if (obj.keys().contains("id")){
|
||||||
QMessageBox::information(qApp->activeWindow(),
|
QMessageBox::information(qApp->activeWindow(),
|
||||||
tr("Photo upload sucessfull"),
|
tr("Photo upload sucessfull"),
|
||||||
tr("Your dive profile was updated to Facebook."),
|
tr("Your dive profile was updated to Facebook."),
|
||||||
QMessageBox::Ok);
|
QMessageBox::Ok);
|
||||||
} else {
|
} else {
|
||||||
QMessageBox::information(qApp->activeWindow(),
|
QMessageBox::information(qApp->activeWindow(),
|
||||||
tr("Photo upload failed"),
|
tr("Photo upload failed"),
|
||||||
tr("Your dive profile was not updated to Facebook, \n "
|
tr("Your dive profile was not updated to Facebook, \n "
|
||||||
"please send the following to the developer. \n"
|
"please send the following to the developer. \n"
|
||||||
+ response),
|
+ response),
|
||||||
QMessageBox::Ok);
|
QMessageBox::Ok);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -328,9 +327,9 @@ SocialNetworkDialog::SocialNetworkDialog(QWidget *parent) :
|
||||||
SocialNetworkDialog::Size SocialNetworkDialog::profileSize() const
|
SocialNetworkDialog::Size SocialNetworkDialog::profileSize() const
|
||||||
{
|
{
|
||||||
QString currText = ui->profileSize->currentText();
|
QString currText = ui->profileSize->currentText();
|
||||||
return currText.startsWith(tr("Small")) ? SMALL :
|
return currText.startsWith(tr("Small")) ? SMALL :
|
||||||
currText.startsWith(tr("Medium")) ? MEDIUM :
|
currText.startsWith(tr("Medium")) ? MEDIUM :
|
||||||
/* currText.startsWith(tr("Big")) ? */ BIG;
|
/* currText.startsWith(tr("Big")) ? */ BIG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue