Skip to content

Commit 98991b4

Browse files
committed
Instantiate QCoreTextFontDatabaseEngineFactory, not just base class
We were instantiating the QCoreTextFontDatabase base class, which doesn't provide the full set of required functions. Task-number: QTBUG-65078 Change-Id: I4dbe50b594ca25c61f748170acf29fcaabc65c0b Reviewed-by: Tor Arne Vestbø <[email protected]>
1 parent 3893920 commit 98991b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugins/platforms/webgl/qwebglintegration_p.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <QtFontDatabaseSupport/private/qwindowsfontdatabase_p.h>
4444
#include <QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h>
4545
#elif defined(Q_OS_MACOS)
46+
#include <QtFontDatabaseSupport/private/qfontengine_coretext_p.h>
4647
#include <QtFontDatabaseSupport/private/qcoretextfontdatabase_p.h>
4748
#include <QtEventDispatcherSupport/private/qgenericunixeventdispatcher_p.h>
4849
#else
@@ -73,7 +74,7 @@ class QWebGLIntegrationPrivate
7374
#if defined(Q_OS_WIN)
7475
mutable QWindowsFontDatabase fontDatabase;
7576
#elif defined(Q_OS_MACOS)
76-
mutable QCoreTextFontDatabase fontDatabase;
77+
mutable QCoreTextFontDatabaseEngineFactory<QCoreTextFontEngine> fontDatabase;
7778
#else
7879
mutable QGenericUnixFontDatabase fontDatabase;
7980
#endif

0 commit comments

Comments
 (0)