From 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 7 May 2012 11:21:11 +0200 Subject: Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286) --- Source/WebKit/qt/declarative/plugin.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Source/WebKit/qt/declarative/plugin.cpp') diff --git a/Source/WebKit/qt/declarative/plugin.cpp b/Source/WebKit/qt/declarative/plugin.cpp index 968b1fe18..08532bf01 100644 --- a/Source/WebKit/qt/declarative/plugin.cpp +++ b/Source/WebKit/qt/declarative/plugin.cpp @@ -17,12 +17,19 @@ Boston, MA 02110-1301, USA. */ +#include "qglobal.h" + #if defined(HAVE_QQUICK1) #include "qdeclarativewebview_p.h" #endif +#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) +#include +#include +#else #include #include +#endif #if defined(HAVE_WEBKIT2) #include "private/qquickwebpage_p.h" @@ -31,8 +38,8 @@ #include "private/qwebloadrequest_p.h" #include "private/qwebnavigationrequest_p.h" -#include #include +#include #endif QT_BEGIN_NAMESPACE @@ -41,7 +48,7 @@ class WebKitQmlPlugin : public QDeclarativeExtensionPlugin { Q_OBJECT public: #if defined(HAVE_WEBKIT2) - virtual void initializeEngine(QDeclarativeEngine* engine, const char* uri) + virtual void initializeEngine(QQmlEngine* engine, const char* uri) { Q_ASSERT(QLatin1String(uri) == QLatin1String("QtWebKit")); engine->addImageProvider(QLatin1String("webicon"), new QWebIconImageProvider); -- cgit v1.2.1