mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-17 16:20:48 +01:00
Fixed PDF export/print
This commit is contained in:
parent
e3c23d0ffc
commit
5912506292
@ -60,7 +60,6 @@ TrackItem::TrackItem(const Track &track, QGraphicsItem *parent)
|
|||||||
|
|
||||||
QBrush brush(Qt::SolidPattern);
|
QBrush brush(Qt::SolidPattern);
|
||||||
QPen pen(brush, TRACK_WIDTH);
|
QPen pen(brush, TRACK_WIDTH);
|
||||||
pen.setCosmetic(true);
|
|
||||||
setPen(pen);
|
setPen(pen);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,6 +67,10 @@ void TrackItem::setScale(qreal scale)
|
|||||||
{
|
{
|
||||||
QGraphicsPathItem::setScale(scale);
|
QGraphicsPathItem::setScale(scale);
|
||||||
updateShape();
|
updateShape();
|
||||||
|
|
||||||
|
QPen p(pen());
|
||||||
|
p.setWidthF(TRACK_WIDTH * 1.0/scale);
|
||||||
|
setPen(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackItem::setColor(const QColor &color)
|
void TrackItem::setColor(const QColor &color)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user