From 0333de426ff0d581a3e4534f3999daf17349c4b5 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 12 Feb 2014 14:24:19 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profile/divecartesianaxis.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/profile/divecartesianaxis.h') diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h index 2327a328f..d9b9e0b9e 100644 --- a/qt-ui/profile/divecartesianaxis.h +++ b/qt-ui/profile/divecartesianaxis.h @@ -35,9 +35,11 @@ public: void setColor(const QColor& color); void setTextColor(const QColor& color); void animateChangeLine(const QLineF& newLine); + void setTextVisible(bool arg1); int unitSystem; public slots: virtual void updateTicks(); + signals: void sizeChanged(); void maxChanged(); @@ -51,6 +53,7 @@ protected: double interval; double tick_size; QColor textColor; + bool textVisibility; }; class DepthAxis : public DiveCartesianAxis { -- cgit v1.2.3-70-g09d2