mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Profile: Stop Hiding All Compass Headings.
It seems to be over the top to hide all compass heading information just because _some_ dive computers log them for every sample. A better approach will be to either suppress these in the parser for the affected dive computer, or let the user suppress them in the profile if they wish to do so. Since there is no information in the comments about the manufacturer / model of the affected dive computer, this is implementing a 'scream test'. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
4d4c250589
commit
f7e624fe0f
1 changed files with 2 additions and 5 deletions
|
@ -77,12 +77,9 @@ void DiveEventItem::setupPixmap(struct gasmix lastgasmix, const DivePixmaps &pix
|
|||
}
|
||||
} else if ((((ev.flags & SAMPLE_FLAGS_SEVERITY_MASK) >> SAMPLE_FLAGS_SEVERITY_SHIFT) == 1) ||
|
||||
// those are useless internals of the dive computer
|
||||
same_string_caseinsensitive(ev.name.c_str(), "heading") ||
|
||||
(same_string_caseinsensitive(ev.name.c_str(), "SP change") && ev.time.seconds == 0)) {
|
||||
// 2 cases:
|
||||
// a) some dive computers have heading in every sample
|
||||
// b) at t=0 we might have an "SP change" to indicate dive type
|
||||
// in both cases we want to get the right data into the tooltip but don't want the visual clutter
|
||||
// at t=0 we might have an "SP change" to indicate dive type
|
||||
// we want to get the right data into the tooltip but don't want the visual clutter
|
||||
// so set an "almost invisible" pixmap (a narrow but somewhat tall, basically transparent pixmap)
|
||||
// that allows tooltips to work when we don't want to show a specific
|
||||
// pixmap for an event, but want to show the event value in the tooltip
|
||||
|
|
Loading…
Add table
Reference in a new issue