diff options
Diffstat (limited to 'src/plugins/platforms/webgl/qwebglintegration_p.h')
-rw-r--r-- | src/plugins/platforms/webgl/qwebglintegration_p.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/platforms/webgl/qwebglintegration_p.h b/src/plugins/platforms/webgl/qwebglintegration_p.h index dffcd9b..2bd4d9d 100644 --- a/src/plugins/platforms/webgl/qwebglintegration_p.h +++ b/src/plugins/platforms/webgl/qwebglintegration_p.h @@ -39,9 +39,12 @@ #include <QtCore/qwaitcondition.h> #include <QtGui/qpa/qplatforminputcontextfactory_p.h> -#ifdef Q_OS_WIN +#if defined(Q_OS_WIN) #include <QtFontDatabaseSupport/private/qwindowsfontdatabase_p.h> #include <QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h> +#elif defined(Q_OS_MACOS) +#include <QtFontDatabaseSupport/private/qcoretextfontdatabase_p.h> +#include <QtEventDispatcherSupport/private/qgenericunixeventdispatcher_p.h> #else #include <QtFontDatabaseSupport/private/qgenericunixfontdatabase_p.h> #include <QtEventDispatcherSupport/private/qgenericunixeventdispatcher_p.h> @@ -69,6 +72,8 @@ public: quint16 httpPort = 0; #if defined(Q_OS_WIN) mutable QWindowsFontDatabase fontDatabase; +#elif defined(Q_OS_MACOS) + mutable QCoreTextFontDatabase fontDatabase; #else mutable QGenericUnixFontDatabase fontDatabase; #endif |