diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-06-28 15:12:10 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-28 20:24:20 +0800 |
commit | 48cf2fd6bc512892de01bbb4261efbc0ce54560d (patch) | |
tree | c0b6c0bd19ee1527c4ea5c94816eb398b3632703 /qt-ui/profilegraphics.cpp | |
parent | fb4dcbc685b3668be2428d60ed978940e3392908 (diff) | |
download | subsurface-48cf2fd6bc512892de01bbb4261efbc0ce54560d.tar.gz |
Profile: move the bounding box below plot data
In certain conditions a number such as '51' could end up being
partially hidden under the white bounding box in such a way
that the digit '1' is barely visible. Putting the bounding
box bellow all plot data solves the issue.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r-- | qt-ui/profilegraphics.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index e580a2b44..cb69bc1ba 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -300,6 +300,13 @@ void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw) /* This is per-dive-computer */ gc.pi = *create_plot_info(dive, dc, &gc); + /* Bounding box */ + QPen pen = defaultPen; + pen.setColor(profile_color[TIME_GRID].at(0)); + QGraphicsRectItem *rect = new QGraphicsRectItem(profile_grid_area); + rect->setPen(pen); + scene()->addItem(rect); + /* Depth profile */ plot_depth_profile(); @@ -320,13 +327,6 @@ void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw) plot_deco_text(); - /* Bounding box */ - QPen pen = defaultPen; - pen.setColor(profile_color[TIME_GRID].at(0)); - QGraphicsRectItem *rect = new QGraphicsRectItem(profile_grid_area); - rect->setPen(pen); - scene()->addItem(rect); - /* Put the dive computer name in the lower left corner */ gc.leftx = 0; gc.rightx = 1.0; gc.topy = 0; gc.bottomy = 1.0; |