From 63c1a1b3e9e631338bca59d45a21e67027799abc Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 19 Jan 2014 20:16:08 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profile/profilewidget2.cpp') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 41e1c2b99..6fc5dd565 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -324,6 +324,7 @@ void ProfileWidget2::plotDives(QList dives) item->setVerticalAxis(profileYAxis); item->setModel(dataModel); item->setEvent(event); + item->setZValue(2); scene()->addItem(item); eventItems.push_back(item); event = event->next; -- cgit v1.2.3-70-g09d2