aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-09 15:04:10 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-09 17:50:06 -0700
commit17c6db6a5b05b3ac1f85d136e86a0072e15e46cd (patch)
treed0b24de2e2305abec2faa7d472e69964826baba9 /qt-ui
parent7f9fbd229568a85109860c18dd18e1e9928e351f (diff)
downloadsubsurface-17c6db6a5b05b3ac1f85d136e86a0072e15e46cd.tar.gz
Shows the correct color for the CylinderPressure
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profilegraphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 32bd87d14..3baf2b008 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -116,6 +116,7 @@ extern int evn_used;
ProfileGraphicsView::ProfileGraphicsView(QWidget* parent) : QGraphicsView(parent)
{
+ gc.printer = false;
setScene(new QGraphicsScene());
setBackgroundBrush(QColor("#F3F3E6"));
scene()->setSceneRect(0,0,1000,1000);
@@ -330,8 +331,7 @@ void ProfileGraphicsView::plot_cylinder_pressure(struct dive *dive, struct divec
}
}
- // QColor c = get_sac_color(sac, dive->sac); Buggy TODO: fix.
- QColor c = QColor(Qt::darkGreen);
+ QColor c = get_sac_color(sac, dive->sac);
if (lift_pen) {
if (!first_plot && entry->cylinderindex == last_index) {