From 4699363a9ee4d61d6fb0ea0bc10a47d8a01b79ff Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 15 Feb 2014 22:49:30 -0200 Subject: Better setup of the defaults for the grid. This patch creates better defaults for the grid lines, size, position and z-level. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/divecartesianaxis.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/profile/divecartesianaxis.cpp') diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp index e176d4f73..705e06a1c 100644 --- a/qt-ui/profile/divecartesianaxis.cpp +++ b/qt-ui/profile/divecartesianaxis.cpp @@ -183,6 +183,7 @@ void DiveCartesianAxis::updateTicks() label->setBrush(QBrush(textColor)); label->setBrush(colorForValue(currValueText)); label->setScale(fontLabelScale()); + label->setZValue(1); labels.push_back(label); if (orientation == RightToLeft || orientation == LeftToRight) { label->setAlignment(Qt::AlignBottom | Qt::AlignHCenter); @@ -209,6 +210,7 @@ void DiveCartesianAxis::updateTicks() pen.setCosmetic(true); pen.setWidthF(2); line->setPen(pen); + line->setZValue(0); lines.push_back(line); if (orientation == RightToLeft || orientation == LeftToRight) { line->setLine(0,-line_size,0, 0); -- cgit v1.2.3-70-g09d2