1
0
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:
2015-10-22 10:27:27 +02:00
parent a08a3d2bb4
commit 8a4b749d6b
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);