summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/ruleritem.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-02-27 16:42:00 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 12:03:59 -0800
commita4d0f7bdb3c9a9366b9ea350eb059601233ee7ab (patch)
tree5202a9b0a81bea8023c6a1b9bbd839f754d6ae11 /qt-ui/profile/ruleritem.cpp
parent0a24e134696577dfc967f7e2ad1b4f0ab87740d6 (diff)
downloadsubsurface-a4d0f7bdb3c9a9366b9ea350eb059601233ee7ab.tar.gz
New profile: Make the ruler work. (caution, fonts are BIIIG )
This patch makes the ruler work again, the problem is that the fonts are *terribly* big, I'll fix that on the next commit. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/ruleritem.cpp')
-rw-r--r--qt-ui/profile/ruleritem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/profile/ruleritem.cpp b/qt-ui/profile/ruleritem.cpp
index 3c53d3d43..d2b06f72d 100644
--- a/qt-ui/profile/ruleritem.cpp
+++ b/qt-ui/profile/ruleritem.cpp
@@ -3,6 +3,7 @@
#include <QFontMetrics>
#include <QPainter>
#include <QGraphicsScene>
+#include <QDebug>
#include <stdint.h>
@@ -171,6 +172,8 @@ void RulerItem2::setPlotInfo(plot_info info)
{
pInfo = info;
recalculate();
+ dest->recalculate();
+ source->recalculate();
}
void RulerItem2::setAxis(DiveCartesianAxis* time, DiveCartesianAxis* depth)