1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 11:52:08 +01:00

Fixed cache issues

This commit is contained in:
Martin Tůma 2016-09-12 02:01:13 +02:00
parent ebf3c3bc14
commit 058a09a426
2 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,7 @@ void AxisItem::setRange(const RangeF &range)
prepareGeometryChange(); prepareGeometryChange();
_range = range; _range = range;
updateBoundingRect(); updateBoundingRect();
update();
} }
void AxisItem::setSize(qreal size) void AxisItem::setSize(qreal size)
@ -50,6 +51,7 @@ void AxisItem::setSize(qreal size)
prepareGeometryChange(); prepareGeometryChange();
_size = size; _size = size;
updateBoundingRect(); updateBoundingRect();
update();
} }
void AxisItem::setLabel(const QString& label) void AxisItem::setLabel(const QString& label)
@ -57,6 +59,7 @@ void AxisItem::setLabel(const QString& label)
prepareGeometryChange(); prepareGeometryChange();
_label = label; _label = label;
updateBoundingRect(); updateBoundingRect();
update();
} }
void AxisItem::updateBoundingRect() void AxisItem::updateBoundingRect()

View File

@ -121,6 +121,7 @@ void ScaleItem::setZoom(int z, qreal lat)
_lat = lat; _lat = lat;
computeScale(); computeScale();
updateBoundingRect(); updateBoundingRect();
update();
} }
void ScaleItem::setZoom(int z) void ScaleItem::setZoom(int z)
@ -129,6 +130,7 @@ void ScaleItem::setZoom(int z)
_zoom = z; _zoom = z;
computeScale(); computeScale();
updateBoundingRect(); updateBoundingRect();
update();
} }
void ScaleItem::setUnits(enum Units units) void ScaleItem::setUnits(enum Units units)
@ -137,4 +139,5 @@ void ScaleItem::setUnits(enum Units units)
_units = units; _units = units;
computeScale(); computeScale();
updateBoundingRect(); updateBoundingRect();
update();
} }