aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-02-15 22:49:30 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-15 17:30:25 -0800
commit4699363a9ee4d61d6fb0ea0bc10a47d8a01b79ff (patch)
treeb3488aeaf809b0eacf3a5fba4b01be94533dbee0
parent883b25cea30727aac641f2809a14da38e2eb3e96 (diff)
downloadsubsurface-4699363a9ee4d61d6fb0ea0bc10a47d8a01b79ff.tar.gz
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 <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profile/divecartesianaxis.cpp2
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
2 files changed, 3 insertions, 1 deletions
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);
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index e68b543fb..ecaa3b170 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -126,7 +126,7 @@ void ProfileWidget2::setupItemOnScene()
profileYAxis->setTickSize(1);
profileYAxis->setLineSize(96);
- timeAxis->setLineSize(96);
+ timeAxis->setLineSize(94);
gasYAxis->setOrientation(DiveCartesianAxis::BottomToTop);
gasYAxis->setTickInterval(1);