mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +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);
|
||||
QPen pen(brush, TRACK_WIDTH);
|
||||
pen.setCosmetic(true);
|
||||
setPen(pen);
|
||||
}
|
||||
|
||||
@ -68,6 +67,10 @@ void TrackItem::setScale(qreal scale)
|
||||
{
|
||||
QGraphicsPathItem::setScale(scale);
|
||||
updateShape();
|
||||
|
||||
QPen p(pen());
|
||||
p.setWidthF(TRACK_WIDTH * 1.0/scale);
|
||||
setPen(p);
|
||||
}
|
||||
|
||||
void TrackItem::setColor(const QColor &color)
|
||||
|
Loading…
Reference in New Issue
Block a user