summaryrefslogtreecommitdiffstats
path: root/src/webengine/plugin/plugin.cpp
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2014-01-06 06:30:02 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-15 09:50:13 +0100
commite2382d300c2620d476ba2afad210a7ed0424bf8c (patch)
tree9241c2733f8870c67f9dfe80bca3704d554af0f0 /src/webengine/plugin/plugin.cpp
parent74ffcbf0cfe0235b5c09515231ff13543388d28b (diff)
Implement QQuickWebEngineLoadRequest class
It contains information about a requested load of a web page. Change-Id: Ie45706adb51ee5bce98e7af01252d9a8389db57d Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/webengine/plugin/plugin.cpp')
-rw-r--r--src/webengine/plugin/plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webengine/plugin/plugin.cpp b/src/webengine/plugin/plugin.cpp
index 751916364..dd36bc6b7 100644
--- a/src/webengine/plugin/plugin.cpp
+++ b/src/webengine/plugin/plugin.cpp
@@ -42,6 +42,7 @@
#include <QtQml/qqmlextensionplugin.h>
#include "qquickwebengineview_p.h"
+#include "qquickwebengineloadrequest_p.h"
QT_BEGIN_NAMESPACE
@@ -55,6 +56,7 @@ public:
Q_ASSERT(QLatin1String(uri) == QLatin1String("QtWebEngine"));
qmlRegisterType<QQuickWebEngineView>(uri, 1, 0, "WebEngineView");
+ qmlRegisterUncreatableType<QQuickWebEngineLoadRequest>(uri, 1, 0, "WebEngineLoadRequest", QObject::tr("Cannot create separate instance of WebEngineLoadRequest"));
}
};