From cd307cdb7d4dfbdaf7c9e7a81f9c39e477909621 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Fri, 6 Feb 2015 19:29:56 +0100 Subject: Improve quicknanobrowser example with new public API features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Promote WebEngineDownloadItem and WebEngine singleton to public API and add DownloadView to the browser example. This patch also adds profile support and webengine settings to quicknanobrowser. Change-Id: Ie81fb330e640fad7feec667a8af3afe67050693f Reviewed-by: Michael BrĂ¼ning --- src/webengine/plugin/experimental/plugin.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/webengine/plugin/experimental') diff --git a/src/webengine/plugin/experimental/plugin.cpp b/src/webengine/plugin/experimental/plugin.cpp index cd38f744c..4d00a4d3d 100644 --- a/src/webengine/plugin/experimental/plugin.cpp +++ b/src/webengine/plugin/experimental/plugin.cpp @@ -36,19 +36,12 @@ #include -#include "qquickwebenginedownloaditem_p.h" #include "qquickwebenginehistory_p.h" -#include "qquickwebenginesingleton_p.h" #include "qquickwebengineview_p.h" #include "qquickwebengineview_p_p.h" QT_BEGIN_NAMESPACE -static QObject *webEngineSingletonProvider(QQmlEngine *, QJSEngine *) -{ - return new QQuickWebEngineSingleton; -} - class QQuickWebEngineViewExperimentalExtension : public QObject { Q_OBJECT Q_PROPERTY(QQuickWebEngineViewExperimental* experimental READ experimental CONSTANT FINAL) @@ -78,9 +71,6 @@ public: QObject::tr("Cannot create a separate instance of NavigationHistory")); qmlRegisterUncreatableType(uri, 1, 0, "NavigationHistoryListModel", QObject::tr("Cannot create a separate instance of NavigationHistory")); - qmlRegisterUncreatableType(uri, 1, 0, "WebEngineDownloadItem", - QObject::tr("Cannot create a separate instance of WebEngineDownloadItem")); - qmlRegisterSingletonType(uri, 1, 0, "WebEngine", webEngineSingletonProvider); // Use the latest revision of QQuickWebEngineView when importing QtWebEngine.experimental 1.0 qmlRegisterRevision(uri, 1, 0); -- cgit v1.2.3