Hide tooltip when posting a profile to Facebook

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-31 10:32:02 -08:00
parent 66c4529088
commit fd33d6aa3f
3 changed files with 8 additions and 0 deletions

View file

@ -1039,6 +1039,11 @@ void ProfileWidget2::clearHandlers()
}
}
void ProfileWidget2::setToolTipVisibile(bool visible)
{
toolTipItem->setVisible(visible);
}
void ProfileWidget2::setAddState()
{
if (currentState == ADD)

View file

@ -82,6 +82,7 @@ public:
double getFontPrintScale();
void setFontPrintScale(double scale);
void clearHandlers();
void setToolTipVisibile(bool visible);
State currentState;
public

View file

@ -202,7 +202,9 @@ void FacebookManager::sendDive()
requestAlbumId();
ProfileWidget2 *profile = MainWindow::instance()->graphics();
profile->setToolTipVisibile(false);
QPixmap pix = QPixmap::grabWidget(profile);
profile->setToolTipVisibile(true);
QByteArray bytes;
QBuffer buffer(&bytes);
buffer.open(QIODevice::WriteOnly);