1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-16 20:04:23 +02:00

Added digital zoom

This commit is contained in:
2017-04-05 22:53:25 +02:00
parent 33cb944e36
commit 03ef7a9147
6 changed files with 109 additions and 46 deletions

View File

@ -24,6 +24,7 @@ PathItem::PathItem(const Path &path, Map *map, QGraphicsItem *parent)
_marker = new MarkerItem(this);
_marker->setPos(position(_path.at(0).distance()));
_marker->setFlag(QGraphicsItem::ItemIgnoresTransformations);
_md = _path.at(0).distance();
setCursor(Qt::ArrowCursor);
@ -79,7 +80,7 @@ void PathItem::setColor(const QColor &color)
update();
}
void PathItem::setWidth(int width)
void PathItem::setWidth(qreal width)
{
prepareGeometryChange();