mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0a24e13469
commit
a4d0f7bdb3
2 changed files with 16 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue