From: Simon Hausmann Date: Mon, 15 Oct 2012 13:07:35 +0000 (+0200) Subject: Adapt to QtWebKit module changes X-Git-Tag: accepted/tizen/20131212.181521~196 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afdb8604510c68ebbe92907285548c7745b5b868;p=platform%2Fupstream%2Fqttools.git Adapt to QtWebKit module changes 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 Reviewed-by: Pierre Rossi --- diff --git a/src/assistant/assistant/assistant.pro b/src/assistant/assistant/assistant.pro index 5eee8e6..d4c0b56 100644 --- a/src/assistant/assistant/assistant.pro +++ b/src/assistant/assistant/assistant.pro @@ -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 diff --git a/src/assistant/assistant/globalactions.cpp b/src/assistant/assistant/globalactions.cpp index 865738f..2af9ed4 100644 --- a/src/assistant/assistant/globalactions.cpp +++ b/src/assistant/assistant/globalactions.cpp @@ -49,7 +49,7 @@ #include #if !defined(QT_NO_WEBKIT) -#include +#include #endif GlobalActions *GlobalActions::instance(QObject *parent) diff --git a/src/assistant/assistant/helpviewer.h b/src/assistant/assistant/helpviewer.h index 8a1013a..e614858 100644 --- a/src/assistant/assistant/helpviewer.h +++ b/src/assistant/assistant/helpviewer.h @@ -53,7 +53,7 @@ #if defined(QT_NO_WEBKIT) #include #else -#include +#include #endif QT_BEGIN_NAMESPACE diff --git a/src/assistant/assistant/main.cpp b/src/assistant/assistant/main.cpp index e15ef62..e709161 100644 --- a/src/assistant/assistant/main.cpp +++ b/src/assistant/assistant/main.cpp @@ -61,7 +61,7 @@ #if !defined(QT_NO_WEBKIT) #include -#include +#include #endif #include "../shared/collectionconfiguration.h" diff --git a/src/designer/src/plugins/plugins.pro b/src/designer/src/plugins/plugins.pro index 628d44c..5f04597 100644 --- a/src/designer/src/plugins/plugins.pro +++ b/src/designer/src/plugins/plugins.pro @@ -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 diff --git a/src/designer/src/plugins/qwebview/qwebview.pro b/src/designer/src/plugins/qwebview/qwebview.pro index f5fe431..ad25010 100644 --- a/src/designer/src/plugins/qwebview/qwebview.pro +++ b/src/designer/src/plugins/qwebview/qwebview.pro @@ -1,7 +1,7 @@ TEMPLATE = lib TARGET = qwebview CONFIG += qt warn_on plugin -QT += widgets webkit +QT += widgets webkitwidgets include(../plugins.pri) diff --git a/src/designer/src/plugins/qwebview/qwebview_plugin.cpp b/src/designer/src/plugins/qwebview/qwebview_plugin.cpp index a1c6fe1..58080be 100644 --- a/src/designer/src/plugins/qwebview/qwebview_plugin.cpp +++ b/src/designer/src/plugins/qwebview/qwebview_plugin.cpp @@ -45,7 +45,7 @@ #include #include -#include +#include 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