mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Hide tooltip when posting a profile to Facebook
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
66c4529088
commit
fd33d6aa3f
3 changed files with 8 additions and 0 deletions
|
@ -1039,6 +1039,11 @@ void ProfileWidget2::clearHandlers()
|
|||
}
|
||||
}
|
||||
|
||||
void ProfileWidget2::setToolTipVisibile(bool visible)
|
||||
{
|
||||
toolTipItem->setVisible(visible);
|
||||
}
|
||||
|
||||
void ProfileWidget2::setAddState()
|
||||
{
|
||||
if (currentState == ADD)
|
||||
|
|
|
@ -82,6 +82,7 @@ public:
|
|||
double getFontPrintScale();
|
||||
void setFontPrintScale(double scale);
|
||||
void clearHandlers();
|
||||
void setToolTipVisibile(bool visible);
|
||||
State currentState;
|
||||
|
||||
public
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue