replaced decrepitated OS system check under Qt. The new version works for Qt >= 5.4 which should cover everything still alive.
This commit is contained in:
parent
c71fc92cf0
commit
55b681acc1
@ -1062,12 +1062,12 @@ void PAdmin::createMusreditStartupFile()
|
|||||||
line.replace("@prefix@", MUSRFIT_PREFIX);
|
line.replace("@prefix@", MUSRFIT_PREFIX);
|
||||||
line.replace("@DOCDIR@", MUSRFIT_DOC_DIR);
|
line.replace("@DOCDIR@", MUSRFIT_DOC_DIR);
|
||||||
if (line.contains("<font_name>")) { // defaults: linux: Monospace, macOS: Courier New
|
if (line.contains("<font_name>")) { // defaults: linux: Monospace, macOS: Courier New
|
||||||
if (QSysInfo::macVersion() != QSysInfo::MV_None) {
|
if (QSysInfo::productType().contains("osx")) {
|
||||||
line.replace("Monospace", "Courier New");
|
line.replace("Monospace", "Courier New");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (line.contains("<font_size>")) { // defaults: linux: 12, macOS: 16
|
if (line.contains("<font_size>")) { // defaults: linux: 12, macOS: 16
|
||||||
if (QSysInfo::macVersion() != QSysInfo::MV_None) {
|
if (QSysInfo::productType().contains("osx")) {
|
||||||
line.replace("12", "16");
|
line.replace("12", "16");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user