forked from qt-creator/qt-creator
OS X: Welcome/QQuickWidget fixes
The rendered text is still ugly, but the fuzzy text is better than the alternative currently. Change-Id: Id9e54fb406ee964e0b9b5c40b7a8108b45c15f85 Task-number: QTBUG-42861 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -415,6 +415,9 @@ MacWebKitHelpWidget::MacWebKitHelpWidget(MacWebKitHelpViewer *parent)
|
||||
{
|
||||
AutoreleasePool pool; Q_UNUSED(pool)
|
||||
d->m_webView = [[MyWebView alloc] init];
|
||||
// Turn layered rendering on.
|
||||
// Otherwise the WebView will render empty after any QQuickWidget was shown.
|
||||
d->m_webView.wantsLayer = YES;
|
||||
d->m_frameLoadDelegate = [[FrameLoadDelegate alloc] initWithMainFrame:d->m_webView.mainFrame
|
||||
viewer:parent];
|
||||
[d->m_webView setFrameLoadDelegate:d->m_frameLoadDelegate];
|
||||
|
||||
Reference in New Issue
Block a user