mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Compile Facebook support when building with Qt5
Now that Facebook approved our use of the API, we can build this by default. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d8e5e1922f
commit
cb6bda4e0c
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WindowFlags f) : QDial
|
||||||
ui.proxyType->setCurrentIndex(-1);
|
ui.proxyType->setCurrentIndex(-1);
|
||||||
|
|
||||||
// Facebook stuff:
|
// Facebook stuff:
|
||||||
#if !defined(Q_OS_ANDROID) && defined(FBSUPPRORT)
|
#if !defined(Q_OS_ANDROID) && defined(FBSUPPORT)
|
||||||
FacebookManager *fb = FacebookManager::instance();
|
FacebookManager *fb = FacebookManager::instance();
|
||||||
if(fb->loggedIn()){
|
if(fb->loggedIn()){
|
||||||
facebookWebView->setHtml("You are connected on Facebook, yey.");
|
facebookWebView->setHtml("You are connected on Facebook, yey.");
|
||||||
|
|
|
@ -240,7 +240,7 @@ FORMS = \
|
||||||
# Nether usermanual or printing is supported on android right now
|
# Nether usermanual or printing is supported on android right now
|
||||||
android: FORMS -= qt-ui/printoptions.ui
|
android: FORMS -= qt-ui/printoptions.ui
|
||||||
|
|
||||||
FBSUPPORT: {
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||||
FORMS += qt-ui/socialnetworksdialog.ui
|
FORMS += qt-ui/socialnetworksdialog.ui
|
||||||
SOURCES += qt-ui/socialnetworks.cpp
|
SOURCES += qt-ui/socialnetworks.cpp
|
||||||
HEADERS += qt-ui/socialnetworks.h
|
HEADERS += qt-ui/socialnetworks.h
|
||||||
|
|
Loading…
Add table
Reference in a new issue