From 0cc881b5bf8a4a6da8277d5166da92a1675f4654 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 29 Jun 2015 11:55:06 +0200 Subject: Add WebAction to QML api Adds WebActions matching QWebEnginePage to QQuickWebEngineView, this makes it possible to support copy/paste on OS X, and makes it possible to do rich text copy to clipboard on all platforms. Change-Id: If43c1b2e8ae0496423f830cfe6b86e0fa1b8126e Task-number: QTBUG-44289 Reviewed-by: Andras Becsi --- src/webengine/plugin/plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/webengine/plugin/plugin.cpp') diff --git a/src/webengine/plugin/plugin.cpp b/src/webengine/plugin/plugin.cpp index cc95fb01f..95268e2c1 100644 --- a/src/webengine/plugin/plugin.cpp +++ b/src/webengine/plugin/plugin.cpp @@ -69,6 +69,7 @@ public: qmlRegisterUncreatableType(uri, 1, 0, "WebEngineNavigationRequest", QObject::tr("Cannot create separate instance of WebEngineNavigationRequest")); qmlRegisterType(uri, 1, 1, "WebEngineView"); + qmlRegisterType(uri, 1, 2, "WebEngineView"); qmlRegisterType(uri, 1, 1, "WebEngineProfile"); qmlRegisterType(uri, 1, 1, "WebEngineScript"); qmlRegisterUncreatableType(uri, 1, 1, "WebEngineCertificateError", QObject::tr("Cannot create separate instance of WebEngineCertificateError")); -- cgit v1.2.3