Help: Fix fallback font family on UNIX

Use "Sans Serif" as it is done inside Qt sources as well.
Otherwise we run into the soft assert when retrieving the
default  fallback font style name on Linux systems.

(Tested with Ubuntu, OpenSuSE, Arch Linux, Gentoo)

Change-Id: Icf04a8ec4ace5014c5526a5a5e5ef45c48660afd
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Christian Stenger
2016-08-04 15:14:08 +02:00
parent b041c6c8d9
commit 612dd96307

View File

@@ -81,7 +81,7 @@ static QString defaultFallbackFontFamily()
if (Utils::HostOsInfo::isMacHost()) if (Utils::HostOsInfo::isMacHost())
return QString("Helvetica"); return QString("Helvetica");
if (Utils::HostOsInfo::isAnyUnixHost()) if (Utils::HostOsInfo::isAnyUnixHost())
return QString("sans-serif"); return QString("Sans Serif");
return QString("Arial"); return QString("Arial");
} }