diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-03-25 23:34:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-27 10:58:22 -0700 |
commit | d2f1a0252310cdb1976d12b49d1077977101ff61 (patch) | |
tree | 8d3b9669e6e8a4af7f9c8fc13eb396136c13c97f /qt-ui/profile | |
parent | 47c0ddbf307f5366ad11498acee63395c21c62d1 (diff) | |
download | subsurface-d2f1a0252310cdb1976d12b49d1077977101ff61.tar.gz |
Profile2: hide the tooltip and ruler if we are printing
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 4be20491a..ef52e2884 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -347,6 +347,15 @@ void ProfileWidget2::plotDives(QList<dive *> dives) zoomLevel = 0; } + // reset some item visibility on printMode changes + toolTipItem->setVisible(!printMode); + QSettings s; + s.beginGroup("TecDetails"); + const bool rulerVisible = s.value("rulergraph", false).toBool() && !printMode; + rulerItem->setVisible(rulerVisible); + rulerItem->sourceNode()->setVisible(rulerVisible); + rulerItem->destNode()->setVisible(rulerVisible); + // No need to do this again if we are already showing the same dive // computer of the same dive, so we check the unique id of the dive // and the selected dive computer number against the ones we are |