mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
[Facebook] Resize the profile before sending it
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2db4f626ed
commit
9b1a949a39
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,6 @@
|
||||||
#include <QNetworkCookieJar>
|
#include <QNetworkCookieJar>
|
||||||
|
|
||||||
#include <QUrlQuery>
|
#include <QUrlQuery>
|
||||||
#include <QEventLoop>
|
|
||||||
#include <QHttpMultiPart>
|
#include <QHttpMultiPart>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
|
@ -194,9 +193,14 @@ void FacebookManager::sendDive()
|
||||||
requestAlbumId();
|
requestAlbumId();
|
||||||
|
|
||||||
ProfileWidget2 *profile = MainWindow::instance()->graphics();
|
ProfileWidget2 *profile = MainWindow::instance()->graphics();
|
||||||
|
|
||||||
|
auto currSize = profile->size();
|
||||||
|
profile->resize(1024,768);
|
||||||
profile->setToolTipVisibile(false);
|
profile->setToolTipVisibile(false);
|
||||||
QPixmap pix = profile->grab();
|
QPixmap pix = profile->grab();
|
||||||
profile->setToolTipVisibile(true);
|
profile->setToolTipVisibile(true);
|
||||||
|
profile->resize(currSize);
|
||||||
|
|
||||||
QByteArray bytes;
|
QByteArray bytes;
|
||||||
QBuffer buffer(&bytes);
|
QBuffer buffer(&bytes);
|
||||||
buffer.open(QIODevice::WriteOnly);
|
buffer.open(QIODevice::WriteOnly);
|
||||||
|
|
Loading…
Add table
Reference in a new issue