diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-31 10:32:02 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-31 10:32:02 -0800 |
commit | fd33d6aa3f1f870b683557568a3dd780c2f25541 (patch) | |
tree | 0440586b87a86e9007a3c4bcde3a2fc7927f55cc /qt-ui | |
parent | 66c4529088904c88d7ab14c94c187b131642b40d (diff) | |
download | subsurface-fd33d6aa3f1f870b683557568a3dd780c2f25541.tar.gz |
Hide tooltip when posting a profile to Facebook
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 5 | ||||
-rw-r--r-- | qt-ui/profile/profilewidget2.h | 1 | ||||
-rw-r--r-- | qt-ui/socialnetworks.cpp | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 924c800e7..57c89b99f 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1039,6 +1039,11 @@ void ProfileWidget2::clearHandlers() } } +void ProfileWidget2::setToolTipVisibile(bool visible) +{ + toolTipItem->setVisible(visible); +} + void ProfileWidget2::setAddState() { if (currentState == ADD) diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index d594748cc..abcf9fd23 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -82,6 +82,7 @@ public: double getFontPrintScale(); void setFontPrintScale(double scale); void clearHandlers(); + void setToolTipVisibile(bool visible); State currentState; public diff --git a/qt-ui/socialnetworks.cpp b/qt-ui/socialnetworks.cpp index 3eda5540b..ce745e79a 100644 --- a/qt-ui/socialnetworks.cpp +++ b/qt-ui/socialnetworks.cpp @@ -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); |