mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Use a propper path defined by the prefix for resources in QT4 builds
This commit is contained in:
parent
5b83f1b86b
commit
d0438b3ee8
@ -362,6 +362,7 @@ win32 {
|
|||||||
|
|
||||||
unix:!macx {
|
unix:!macx {
|
||||||
isEmpty(PREFIX):PREFIX = /usr/local
|
isEmpty(PREFIX):PREFIX = /usr/local
|
||||||
|
lessThan(QT_MAJOR_VERSION, 5) {DEFINES += PREFIX=\\\"$$PREFIX\\\"}
|
||||||
|
|
||||||
maps.files = pkg/maps/*
|
maps.files = pkg/maps/*
|
||||||
maps.path = $$PREFIX/share/gpxsee/maps
|
maps.path = $$PREFIX/share/gpxsee/maps
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#else
|
#else
|
||||||
#define USER_DIR QDir::homePath() + QString("/.local/share/") \
|
#define USER_DIR QDir::homePath() + QString("/.local/share/") \
|
||||||
+ qApp->applicationName()
|
+ qApp->applicationName()
|
||||||
#define GLOBAL_DIR QString("/usr/share/") + qApp->applicationName()
|
#define GLOBAL_DIR QString(PREFIX "/share/") + qApp->applicationName()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static QString dir(const QString &dirName, bool writable = false)
|
static QString dir(const QString &dirName, bool writable = false)
|
||||||
|
Loading…
Reference in New Issue
Block a user