Turn around the meaning of the command line parameter.
The FreeType engine can now be activated by passing freetype.
Change-Id: I9da6cd4a127603f9cfb91f0ce8450088c0883faa
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
{
if (!d->m_fontDatabase) {
#ifndef QT_NO_FREETYPE
- if (d->m_nativeInterface.property("fontengine").toString() == QLatin1String("native"))
- d->m_fontDatabase = new QWindowsFontDatabase();
- else
+ const QVariant argument = d->m_nativeInterface.property("fontengine");
+ if (argument.isValid() && argument.toString() == QLatin1String("freetype"))
d->m_fontDatabase = new QWindowsFontDatabaseFT();
+ else
+ d->m_fontDatabase = new QWindowsFontDatabase();
#else
d->m_fontDatabase = new QWindowsFontDatabase();
#endif