From 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 9 Feb 2012 14:16:12 +0100 Subject: Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223) --- Source/WebKit/qt/declarative/experimental/plugin.cpp | 18 +++++++++--------- Source/WebKit/qt/declarative/public.pri | 6 +----- Source/WebKit/qt/declarative/qdeclarativewebview_p.h | 11 ++--------- 3 files changed, 12 insertions(+), 23 deletions(-) (limited to 'Source/WebKit/qt/declarative') diff --git a/Source/WebKit/qt/declarative/experimental/plugin.cpp b/Source/WebKit/qt/declarative/experimental/plugin.cpp index cab0fba09..7a41657ac 100644 --- a/Source/WebKit/qt/declarative/experimental/plugin.cpp +++ b/Source/WebKit/qt/declarative/experimental/plugin.cpp @@ -48,18 +48,18 @@ public: { Q_ASSERT(QLatin1String(uri) == QLatin1String("QtWebKit.experimental")); - qmlRegisterUncreatableType(uri, 3, 0, "DownloadItem", QObject::tr("Cannot create separate instance of DownloadItem")); - qmlRegisterUncreatableType(uri, 3, 0, "NavigationListModel", QObject::tr("Cannot create separate instance of NavigationListModel")); - qmlRegisterUncreatableType(uri, 3, 0, "NavigationHistory", QObject::tr("Cannot create separate instance of NavigationHistory")); - qmlRegisterExtendedType(uri, 3, 0, "WebView"); - qmlRegisterUncreatableType(uri, 3, 0, "WebViewExperimental", + qmlRegisterUncreatableType(uri, 1, 0, "DownloadItem", QObject::tr("Cannot create separate instance of DownloadItem")); + qmlRegisterUncreatableType(uri, 1, 0, "NavigationListModel", QObject::tr("Cannot create separate instance of NavigationListModel")); + qmlRegisterUncreatableType(uri, 1, 0, "NavigationHistory", QObject::tr("Cannot create separate instance of NavigationHistory")); + qmlRegisterExtendedType(uri, 1, 0, "WebView"); + qmlRegisterUncreatableType(uri, 1, 0, "WebViewExperimental", QObject::tr("Cannot create separate instance of WebViewExperimental")); - qmlRegisterUncreatableType(uri, 3, 0, "QWebViewportInfo", + qmlRegisterUncreatableType(uri, 1, 0, "QWebViewportInfo", QObject::tr("Cannot create separate instance of QWebViewportInfo")); - qmlRegisterType(uri, 3, 0, "UrlSchemeDelegate"); - qmlRegisterUncreatableType(uri, 3, 0, "NetworkRequest", + qmlRegisterType(uri, 1, 0, "UrlSchemeDelegate"); + qmlRegisterUncreatableType(uri, 1, 0, "NetworkRequest", QObject::tr("NetworkRequest should not be created from QML")); - qmlRegisterUncreatableType(uri, 3, 0, "NetworkReply", + qmlRegisterUncreatableType(uri, 1, 0, "NetworkReply", QObject::tr("NetworkReply should not be created from QML")); } }; diff --git a/Source/WebKit/qt/declarative/public.pri b/Source/WebKit/qt/declarative/public.pri index 667d944e2..a6665eda6 100644 --- a/Source/WebKit/qt/declarative/public.pri +++ b/Source/WebKit/qt/declarative/public.pri @@ -27,11 +27,7 @@ wince*:LIBS += $$QMAKE_LIBS_GUI CONFIG += qtwebkit qtwebkit-private QT += declarative -haveQt(5): QT += widgets quick - -contains(QT_CONFIG, qtquick1): { - QT += qtquick1 -} +haveQt(5): QT += widgets quick quick1 DESTDIR = $${ROOT_BUILD_DIR}/imports/$${TARGET.module_name} diff --git a/Source/WebKit/qt/declarative/qdeclarativewebview_p.h b/Source/WebKit/qt/declarative/qdeclarativewebview_p.h index 83463db97..088f23bc8 100644 --- a/Source/WebKit/qt/declarative/qdeclarativewebview_p.h +++ b/Source/WebKit/qt/declarative/qdeclarativewebview_p.h @@ -21,17 +21,10 @@ #ifndef qdeclarativewebview_p_h #define qdeclarativewebview_p_h +#include +#include #include #include - -#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) -#include -#include -#else -#include -#include -#endif - #include #include "qgraphicswebview.h" #include "qwebpage.h" -- cgit v1.2.1