From 4abe9d5c8b99049c775f3ca9dbd66dbafea6f98c Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 12 Mar 2014 00:09:54 +0200 Subject: [PATCH] Profile2: place the ruler and tooltip on top (Z order) The topmost Z order of items in the profile should be: - background (poster / logo) - toolTipItem - rulerItem ... This mostly fixes the ruler being under other elements. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 0a4062ec1..2cdff1cff 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -132,7 +132,9 @@ void ProfileWidget2::addItemsToScene() void ProfileWidget2::setupItemOnScene() { background->setZValue(9999); + toolTipItem->setZValue(9998); toolTipItem->setTimeAxis(timeAxis); + rulerItem->setZValue(9997); profileYAxis->setOrientation(DiveCartesianAxis::TopToBottom); profileYAxis->setMinimum(0);