summaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-08-26 18:09:59 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-08-29 17:40:47 +0200
commitb3d286ab167a0b689248e8d5cb4dd296aa3e9196 (patch)
treebf7f502b4945cb0264c7853f114dfb0aad4d215f /lib/widgets
parent63fe3552a5873c9477e0c8c01972d6c2a0bd9674 (diff)
Ref-count WebContentsAdapter.
This is needed to handle createWindow where a WebContentsAdapter will be created to wrap the new WebContents and will passed up through the API. If the application doesn't handle the callback, this will allow managing the lifetime of the WebContents more easily. Change-Id: I40ae1973a9bdf8c3d75f9ff137228d48ed92cfb2 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/Api/qwebenginepage_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/widgets/Api/qwebenginepage_p.h b/lib/widgets/Api/qwebenginepage_p.h
index b1987cbd0..f43ed9522 100644
--- a/lib/widgets/Api/qwebenginepage_p.h
+++ b/lib/widgets/Api/qwebenginepage_p.h
@@ -46,7 +46,7 @@
#include "web_contents_adapter_client.h"
#include <QtCore/private/qobject_p.h>
-#include <QScopedPointer>
+#include <QSharedData>
class QWebEngineHistory;
class QWebEnginePage;
@@ -74,7 +74,7 @@ public:
void updateNavigationActions();
void _q_webActionTriggered(bool checked);
- QScopedPointer<WebContentsAdapter> adapter;
+ QExplicitlySharedDataPointer<WebContentsAdapter> adapter;
QWebEngineHistory *history;
QWebEngineView *view;
mutable QAction *actions[QWebEnginePage::WebActionCount];