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>
This commit is contained in:
Lubomir I. Ivanov 2014-03-12 00:09:54 +02:00 committed by Dirk Hohndel
parent f2bfc72648
commit 4abe9d5c8b

View file

@ -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);