mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show ICD events data in infobox
If a gas switch violates our ICD criteria, show this in the info box. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
c866b82f35
commit
7b508e41cd
3 changed files with 12 additions and 6 deletions
|
@ -715,6 +715,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||
qDeleteAll(eventItems);
|
||||
eventItems.clear();
|
||||
struct event *event = currentdc->events;
|
||||
struct event *ev;
|
||||
struct gasmix lastgasmix = *get_gasmix(&displayed_dive, current_dc, 1, &ev, NULL);
|
||||
while (event) {
|
||||
// if print mode is selected only draw headings, SP change, gas events or bookmark event
|
||||
if (printMode) {
|
||||
|
@ -731,7 +733,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||
item->setHorizontalAxis(timeAxis);
|
||||
item->setVerticalAxis(profileYAxis);
|
||||
item->setModel(dataModel);
|
||||
item->setEvent(event);
|
||||
item->setEvent(event, &lastgasmix);
|
||||
item->setZValue(2);
|
||||
scene()->addItem(item);
|
||||
eventItems.push_back(item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue