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>
This commit is contained in:
Tomaz Canabrava 2014-02-27 16:42:00 -03:00 committed by Dirk Hohndel
parent 0a24e13469
commit a4d0f7bdb3
2 changed files with 16 additions and 5 deletions

View file

@ -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)