From 7b9400685d86eee904b07471353435f34fec3686 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 4 Feb 2014 19:21:57 -0200 Subject: Optimizations and fixes on the new profile. This patch optimizes a few items when hitting the 'save preferences' dialog, since when a preference is modified, all the items try to reload their visual based on wether a preference changed or not, the correct code for 'hey, my pref changed, let's update' needed to be done. now the axis will only set a new maximum if it's different from the old one ( and thus, going to a new dive with the same maxdepth or maxtime as the old one will not touch their axis, not triggering gratuitous animations. ) also, the 'incr by 3m' was not being called - it seems that our 'syncsettings' method is not storing things on the 'prefs' global var. I added just for the incr by 3m case, but it's something that we need to check later. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/divecartesianaxis.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/profile/divecartesianaxis.h') diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h index 3f18fe8ff..f321983ab 100644 --- a/qt-ui/profile/divecartesianaxis.h +++ b/qt-ui/profile/divecartesianaxis.h @@ -63,6 +63,8 @@ protected: QColor colorForValue(double value); private slots: void settingsChanged(); +private: + bool showWithPPGraph; }; class TimeAxis : public DiveCartesianAxis { -- cgit v1.2.3-70-g09d2