Plot the events on top of the profile.

Changes the ZValue of the event items so they are plotted
on top of the profile, instead of being hidden on some.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-19 20:16:08 -02:00 committed by Dirk Hohndel
parent edad8712b9
commit 63c1a1b3e9

View file

@ -324,6 +324,7 @@ void ProfileWidget2::plotDives(QList<dive*> dives)
item->setVerticalAxis(profileYAxis);
item->setModel(dataModel);
item->setEvent(event);
item->setZValue(2);
scene()->addItem(item);
eventItems.push_back(item);
event = event->next;