Adapt to QtWebKit module changes
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 15 Oct 2012 13:07:35 +0000 (15:07 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 15 Oct 2012 14:10:58 +0000 (16:10 +0200)
The widget specific API of QtWebKit is split out into a separate QtWebKitWidgets
module. Assistant and Designer use the widget specific API and therefore
need to use QT += webkitwidgets instead of QT += webkit.

Change-Id: I57b829428e079f454560676c48536aae8de15ed4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
src/assistant/assistant/assistant.pro
src/assistant/assistant/globalactions.cpp
src/assistant/assistant/helpviewer.h
src/assistant/assistant/main.cpp
src/designer/src/plugins/plugins.pro
src/designer/src/plugins/qwebview/qwebview.pro
src/designer/src/plugins/qwebview/qwebview_plugin.cpp

index 5eee8e6..d4c0b56 100644 (file)
@@ -2,8 +2,8 @@ TEMPLATE = app
 LANGUAGE = C++
 TARGET = assistant
 DESTDIR = $$QT.help.bins
-!isEmpty(QT.webkit.name) {
-    QT += webkit
+!isEmpty(QT.webkitwidgets.name) {
+    QT += webkitwidgets
 } else {
     DEFINES += QT_NO_WEBKIT
 }
@@ -85,7 +85,7 @@ SOURCES += aboutdialog.cpp \
     openpageswidget.cpp \
     openpagesmanager.cpp \
     openpagesswitcher.cpp
-contains(QT_CONFIG, webkit) {
+contains(QT_CONFIG, webkitwidgets) {
     SOURCES += helpviewer_qwv.cpp
 } else {
     SOURCES += helpviewer_qtb.cpp
index 865738f..2af9ed4 100644 (file)
@@ -49,7 +49,7 @@
 #include <QtWidgets/QMenu>
 
 #if !defined(QT_NO_WEBKIT)
-#include <QtWebKit/QWebHistory>
+#include <QWebHistory>
 #endif
 
 GlobalActions *GlobalActions::instance(QObject *parent)
index 8a1013a..e614858 100644 (file)
@@ -53,7 +53,7 @@
 #if defined(QT_NO_WEBKIT)
 #include <QtWidgets/QTextBrowser>
 #else
-#include <QtWebKit/QWebView>
+#include <QWebView>
 #endif
 
 QT_BEGIN_NAMESPACE
index e15ef62..e709161 100644 (file)
@@ -61,7 +61,7 @@
 
 #if !defined(QT_NO_WEBKIT)
 #include <QtGui/QFont>
-#include <QtWebKit/QWebSettings>
+#include <QWebSettings>
 #endif
 
 #include "../shared/collectionconfiguration.h"
index 628d44c..5f04597 100644 (file)
@@ -3,5 +3,5 @@ CONFIG += ordered
 
 REQUIRES = !CONFIG(static,shared|static)
 # contains(QT_CONFIG, opengl): SUBDIRS += tools/view3d
-contains(QT_CONFIG, webkit): SUBDIRS += qwebview
+contains(QT_CONFIG, webkitwidgets): SUBDIRS += qwebview
 # win32: contains(QT_CONFIG, activeqt): SUBDIRS += activeqt
index f5fe431..ad25010 100644 (file)
@@ -1,7 +1,7 @@
 TEMPLATE    = lib
 TARGET      = qwebview
 CONFIG     += qt warn_on plugin
-QT         += widgets webkit
+QT         += widgets webkitwidgets
 
 include(../plugins.pri)
 
index a1c6fe1..58080be 100644 (file)
@@ -45,7 +45,7 @@
 #include <QtDesigner/QExtensionManager>
 
 #include <QtCore/qplugin.h>
-#include <QtWebKit/QWebView>
+#include <QWebView>
 
 static const char *toolTipC = "QtWebKit Web widget";
 
@@ -79,7 +79,7 @@ QString QWebViewPlugin::whatsThis() const
 
 QString QWebViewPlugin::includeFile() const
 {
-    return QStringLiteral("QtWebKit/QWebView");
+    return QStringLiteral("QtWebKitWidgets/QWebView");
 }
 
 QIcon QWebViewPlugin::icon() const