summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-09-29 14:15:24 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-29 12:57:34 -0700
commit9b1a949a39afaa4e5d79aaf394f382bf3063f931 (patch)
tree6908676c6cafed776ed7d4bf2b73ebdf09592179 /desktop-widgets/plugins/facebook
parent2db4f626ed753ffe7febdcc51a57a10d4e1ce9b6 (diff)
downloadsubsurface-9b1a949a39afaa4e5d79aaf394f382bf3063f931.tar.gz
[Facebook] Resize the profile before sending it
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/plugins/facebook')
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
index 4562f48a7..49ac72861 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.cpp
@@ -10,7 +10,6 @@
#include <QNetworkCookieJar>
#include <QUrlQuery>
-#include <QEventLoop>
#include <QHttpMultiPart>
#include <QFile>
#include <QBuffer>
@@ -194,9 +193,14 @@ void FacebookManager::sendDive()
requestAlbumId();
ProfileWidget2 *profile = MainWindow::instance()->graphics();
+
+ auto currSize = profile->size();
+ profile->resize(1024,768);
profile->setToolTipVisibile(false);
QPixmap pix = profile->grab();
profile->setToolTipVisibile(true);
+ profile->resize(currSize);
+
QByteArray bytes;
QBuffer buffer(&bytes);
buffer.open(QIODevice::WriteOnly);