diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-26 18:01:38 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 14:07:48 -0700 |
commit | 4c9dd0e698f7d62f19b2097c03f99fe9d8f3ed6a (patch) | |
tree | a30ed848435b1453a64d8c68dab6d32f2c77fac1 /qt-ui/profile/divecartesianaxis.h | |
parent | addec6b69fe9022a79d83945b865a0b518f556e8 (diff) | |
download | subsurface-4c9dd0e698f7d62f19b2097c03f99fe9d8f3ed6a.tar.gz |
Speed up the grid: don't repaint when uneeded.
Added a flag to only recalculate the axis when needed.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.h')
-rw-r--r-- | qt-ui/profile/divecartesianaxis.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |