no font initialization for QCoreApplication examples
This commit is contained in:
parent
09a12fc7a8
commit
9cd5db0f47
@ -51,6 +51,9 @@
|
|||||||
|
|
||||||
static void initFonts()
|
static void initFonts()
|
||||||
{
|
{
|
||||||
|
if ( !qobject_cast< QGuiApplication* >( qApp ) )
|
||||||
|
return; // no fonts needed
|
||||||
|
|
||||||
#ifdef FONTCONFIG_FILE
|
#ifdef FONTCONFIG_FILE
|
||||||
const char env[] = "FONTCONFIG_FILE";
|
const char env[] = "FONTCONFIG_FILE";
|
||||||
if ( !qEnvironmentVariableIsSet( env ) )
|
if ( !qEnvironmentVariableIsSet( env ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user