summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-02-15 22:54:41 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-15 17:30:25 -0800
commit44a72b805cffd64925e7bbcc44d7f4a8a675e82f (patch)
treeeb299870c46c3ce53e0c2cc9828d921823468705 /qt-ui/profile/profilewidget2.cpp
parent4699363a9ee4d61d6fb0ea0bc10a47d8a01b79ff (diff)
downloadsubsurface-44a72b805cffd64925e7bbcc44d7f4a8a675e82f.tar.gz
Make it possible to hide some of the grid lines.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index ecaa3b170..06f1f6707 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -176,14 +176,12 @@ void ProfileWidget2::setupItemOnScene()
CREATE_PP_GAS( po2GasItem, PO2, PO2, PO2_ALERT, "po2threshold", "po2graph");
#undef CREATE_PP_GAS
-#ifdef QT_NO_DEBUG // Some debug helpers.
temperatureAxis->setTextVisible(false);
+ temperatureAxis->setLinesVisible(false);
cylinderPressureAxis->setTextVisible(false);
-#else
- temperatureAxis->setTextVisible(true);
- cylinderPressureAxis->setTextVisible(true);
-#endif
-
+ cylinderPressureAxis->setLinesVisible(false);
+ timeAxis->setLinesVisible(true);
+ profileYAxis->setLinesVisible(true);
}
void ProfileWidget2::setupItemSizes()