summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-03-12 00:09:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-12 11:25:23 -0700
commit4abe9d5c8b99049c775f3ca9dbd66dbafea6f98c (patch)
tree7b9409985750075d2d452434a36443cbe7d890a8 /qt-ui/profile
parentf2bfc72648ee11bf1efd33f5f57b78f05a59b52e (diff)
downloadsubsurface-4abe9d5c8b99049c775f3ca9dbd66dbafea6f98c.tar.gz
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 <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 2 insertions, 0 deletions
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);