mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
[Facebook] fewer UI freezes while accessing facebook
Use signal / slots on the networkreply instead of freezing the event loop. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c8c9a5dc65
commit
7b8832bc0b
2 changed files with 32 additions and 13 deletions
|
@ -3,6 +3,7 @@
|
|||
#define FACEBOOKCONNECTWIDGET_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QUrl>
|
||||
#ifdef USE_WEBENGINE
|
||||
class QWebEngineView;
|
||||
#else
|
||||
|
@ -11,8 +12,8 @@ class QWebView;
|
|||
class QNetworkReply;
|
||||
|
||||
namespace Ui {
|
||||
class FacebookConnectWidget;
|
||||
class SocialnetworksDialog;
|
||||
class FacebookConnectWidget;
|
||||
class SocialnetworksDialog;
|
||||
}
|
||||
|
||||
class FacebookManager : public QObject
|
||||
|
@ -33,10 +34,14 @@ public slots:
|
|||
void logout();
|
||||
void setDesiredAlbumName(const QString& albumName);
|
||||
void sendDive();
|
||||
void uploadFinished();
|
||||
void uploadFinished();
|
||||
void albumListReceived();
|
||||
void createFacebookAlbum();
|
||||
void facebookAlbumCreated();
|
||||
private:
|
||||
explicit FacebookManager(QObject *parent = 0);
|
||||
QString albumName;
|
||||
QUrl albumListUrl;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue