diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-19 20:16:08 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-19 21:38:14 -0800 |
commit | 63c1a1b3e9e631338bca59d45a21e67027799abc (patch) | |
tree | 270c3114652857be9ef06b9a3cacd718070a509f | |
parent | edad8712b97781ae8952fe5905cb337ecc0be9ea (diff) | |
download | subsurface-63c1a1b3e9e631338bca59d45a21e67027799abc.tar.gz |
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>
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<dive*> dives) item->setVerticalAxis(profileYAxis); item->setModel(dataModel); item->setEvent(event); + item->setZValue(2); scene()->addItem(item); eventItems.push_back(item); event = event->next; |