From 4c9dd0e698f7d62f19b2097c03f99fe9d8f3ed6a Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 26 May 2014 18:01:38 -0300 Subject: Speed up the grid: don't repaint when uneeded. Added a flag to only recalculate the axis when needed. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/divecartesianaxis.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profile/divecartesianaxis.h') diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h index 34089e614..e7fa68cc3 100644 --- a/qt-ui/profile/divecartesianaxis.h +++ b/qt-ui/profile/divecartesianaxis.h @@ -69,6 +69,7 @@ protected: bool lineVisibility; double labelScale; qreal line_size; + bool changed; }; class DepthAxis : public DiveCartesianAxis { -- cgit v1.2.3-70-g09d2