aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-02-12 14:24:19 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-12 10:31:24 -0800
commit0333de426ff0d581a3e4534f3999daf17349c4b5 (patch)
tree684b2483ba0ba69bbce50c61ab26c5ccb0280910 /qt-ui/profile/profilewidget2.cpp
parent8041a2ed856f88345032cda7d8b309c52910ed47 (diff)
downloadsubsurface-0333de426ff0d581a3e4534f3999daf17349c4b5.tar.gz
Hide the extra axis labels on release mode, show on debug mode.
The extra axis labels on the Temperature and Cylinder Pressure graphs are not wanted in release mode as they create a lot of visual clutter, but they are useful to have in debug mode since we can then better understand what went wrong. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 71fa6512a..ccbc4f6a1 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -176,6 +176,14 @@ 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);
+ cylinderPressureAxis->setTextVisible(false);
+#else
+ temperatureAxis->setTextVisible(true);
+ cylinderPressureAxis->setTextVisible(true);
+#endif
+
}
void ProfileWidget2::setupItemSizes()