diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-09-16 16:43:01 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-16 21:16:58 -0700 |
commit | d59e89e569b732661633424fcf19f09e95b936fe (patch) | |
tree | 738d09dfd413ba279ada2a05a88eba5a031efcdf /qt-ui/maintab.cpp | |
parent | e945134cc48315dfbe462051d9facd1543779e2c (diff) | |
download | subsurface-d59e89e569b732661633424fcf19f09e95b936fe.tar.gz |
Make Facebook more user friendly
The current way that facebook works is terrible: it's scattered
around tons of files ( at least 4 different files and classes )
this moves things around a bit, add a disconnect button that
was missing, cleans tons of code and fix inconsistencies.
I will also redo this part for 5.0, but it's too late for 4.5
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index fb1a64c38..2e4d3fc9f 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -25,10 +25,6 @@ #include "locationinformation.h" #include "divesite.h" -#if defined(FBSUPPORT) -#include "socialnetworks.h" -#endif - #include <QCompleter> #include <QSettings> #include <QScrollBar> @@ -201,17 +197,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), ui.photosView->setSelectionMode(QAbstractItemView::SingleSelection); connect(deletePhoto, SIGNAL(triggered(bool)), this, SLOT(removeSelectedPhotos())); -#if defined(FBSUPPORT) - FacebookManager *fb = FacebookManager::instance(); - connect(fb, &FacebookManager::justLoggedIn, ui.facebookPublish, &QPushButton::show); - connect(fb, &FacebookManager::justLoggedOut, ui.facebookPublish, &QPushButton::hide); - connect(ui.facebookPublish, &QPushButton::clicked, fb, &FacebookManager::sendDive); - ui.facebookPublish->setVisible(fb->loggedIn()); -#else - ui.facebookPublish->setVisible(false); - ui.socialNetworks->setVisible(false); -#endif - ui.waitingSpinner->setRoundness(70.0); ui.waitingSpinner->setMinimumTrailOpacity(15.0); ui.waitingSpinner->setTrailFadePercentage(70.0); |