mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 03:29:16 +02:00
Fixed broken rendering with QT5
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
|
||||
#define APP_NAME "GPXSee"
|
||||
#define APP_HOMEPAGE "http://tumic.wz.cz/gpxsee"
|
||||
#define APP_VERSION "1.0"
|
||||
#define APP_VERSION "1.1"
|
||||
|
||||
#define FONT_FAMILY "Arial"
|
||||
#define FONT_SIZE 12
|
||||
|
@ -137,7 +137,9 @@ void Graph::loadData(const QVector<QPointF> &data)
|
||||
}
|
||||
|
||||
pi = new QGraphicsPathItem(path);
|
||||
pi->setPen(QPen(color));
|
||||
QBrush brush(color, Qt::SolidPattern);
|
||||
QPen pen(brush, 0);
|
||||
pi->setPen(pen);
|
||||
_scene->addItem(pi);
|
||||
_graphs.append(pi);
|
||||
|
||||
|
@ -54,7 +54,9 @@ void Track::loadGPX(const GPX &gpx)
|
||||
}
|
||||
|
||||
pi = new QGraphicsPathItem(path);
|
||||
pi->setPen(QPen(color));
|
||||
QBrush brush(color, Qt::SolidPattern);
|
||||
QPen pen(brush, 0);
|
||||
pi->setPen(pen);
|
||||
_scene->addItem(pi);
|
||||
_trackPaths.append(pi);
|
||||
|
||||
|
Reference in New Issue
Block a user