summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebengineview.h
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-07-07 18:12:15 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-08-04 08:45:25 +0200
commit1c2a4da1c73bfc2456c59146ce615b7e2122e90e (patch)
tree7690eee799b00b177dc03e1e64706a108bb99abd /src/webenginewidgets/api/qwebengineview.h
parentddd8ab311271b59514ce0748301e634ca988b62b (diff)
Don't inherit from Qt private types
Do the d_ptr magic ourselves to avoid having to include private headers from qtcore, qtgui and qtdeclarative. It is hackish to hide QObject's d_ptr member to have the macros working in a public class, but if anything goes wrong we just need to replace the private macro convenience while maintaining the binary compatibility of the stored extra opaque pointer. Change-Id: Idb92f4f902826bef9068a5c2ef6ea31fc3fa15b2 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineview.h')
-rw-r--r--src/webenginewidgets/api/qwebengineview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebengineview.h b/src/webenginewidgets/api/qwebengineview.h
index c3ebfba07..f96833b18 100644
--- a/src/webenginewidgets/api/qwebengineview.h
+++ b/src/webenginewidgets/api/qwebengineview.h
@@ -99,6 +99,7 @@ protected:
private:
Q_DECLARE_PRIVATE(QWebEngineView);
+ QScopedPointer<QWebEngineViewPrivate> d_ptr;
friend class QWebEnginePage;
friend class QWebEnginePagePrivate;