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>
This commit is contained in:
Tomaz Canabrava 2014-05-26 18:01:38 -03:00 committed by Dirk Hohndel
parent addec6b69f
commit 4c9dd0e698
2 changed files with 10 additions and 2 deletions

View file

@ -69,6 +69,7 @@ protected:
bool lineVisibility;
double labelScale;
qreal line_size;
bool changed;
};
class DepthAxis : public DiveCartesianAxis {