mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
47c0ddbf30
commit
d2f1a02523
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue