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()
|
void ProfileWidget2::setAddState()
|
||||||
{
|
{
|
||||||
if (currentState == ADD)
|
if (currentState == ADD)
|
||||||
|
|
|
@ -82,6 +82,7 @@ public:
|
||||||
double getFontPrintScale();
|
double getFontPrintScale();
|
||||||
void setFontPrintScale(double scale);
|
void setFontPrintScale(double scale);
|
||||||
void clearHandlers();
|
void clearHandlers();
|
||||||
|
void setToolTipVisibile(bool visible);
|
||||||
State currentState;
|
State currentState;
|
||||||
|
|
||||||
public
|
public
|
||||||
|
|
|
@ -202,7 +202,9 @@ void FacebookManager::sendDive()
|
||||||
requestAlbumId();
|
requestAlbumId();
|
||||||
|
|
||||||
ProfileWidget2 *profile = MainWindow::instance()->graphics();
|
ProfileWidget2 *profile = MainWindow::instance()->graphics();
|
||||||
|
profile->setToolTipVisibile(false);
|
||||||
QPixmap pix = QPixmap::grabWidget(profile);
|
QPixmap pix = QPixmap::grabWidget(profile);
|
||||||
|
profile->setToolTipVisibile(true);
|
||||||
QByteArray bytes;
|
QByteArray bytes;
|
||||||
QBuffer buffer(&bytes);
|
QBuffer buffer(&bytes);
|
||||||
buffer.open(QIODevice::WriteOnly);
|
buffer.open(QIODevice::WriteOnly);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue