summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebengineview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webenginewidgets/api/qwebengineview.cpp')
-rw-r--r--src/webenginewidgets/api/qwebengineview.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/webenginewidgets/api/qwebengineview.cpp b/src/webenginewidgets/api/qwebengineview.cpp
index 03bb474b..13ee75cf 100644
--- a/src/webenginewidgets/api/qwebengineview.cpp
+++ b/src/webenginewidgets/api/qwebengineview.cpp
@@ -99,16 +99,19 @@ static QAccessibleInterface *webAccessibleFactory(const QString &, QObject *obje
}
QWebEngineViewPrivate::QWebEngineViewPrivate()
- : QWidgetPrivate(QObjectPrivateVersion)
- , page(0)
+ : page(0)
, m_pendingContextMenuEvent(false)
{
QAccessible::installFactory(&webAccessibleFactory);
}
QWebEngineView::QWebEngineView(QWidget *parent)
- : QWidget(*(new QWebEngineViewPrivate), parent, 0)
+ : QWidget(parent)
+ , d_ptr(new QWebEngineViewPrivate)
{
+ Q_D(QWebEngineView);
+ d->q_ptr = this;
+
// This causes the child RenderWidgetHostViewQtDelegateWidgets to fill this widget.
setLayout(new QStackedLayout);
}