1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Fixed broken rendering with QT5

This commit is contained in:
Martin Tůma 2015-10-22 10:27:27 +02:00
parent a08a3d2bb4
commit 8a4b749d6b
4 changed files with 8 additions and 4 deletions

View File

@ -63,7 +63,7 @@ Section "GPXSee (required)" SEC_APP
; Write the uninstall keys for Windows
WriteRegStr HKCU "${REGENTRY}" "DisplayName" "GPXSee"
WriteRegStr HKCU "${REGENTRY}" "Publisher" "Martin Tuma"
WriteRegStr HKCU "${REGENTRY}" "DisplayVersion" "1.0"
WriteRegStr HKCU "${REGENTRY}" "DisplayVersion" "1.1"
WriteRegStr HKCU "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKCU "${REGENTRY}" "NoModify" 1
WriteRegDWORD HKCU "${REGENTRY}" "NoRepair" 1

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