QmlDesigner: remove hard webkit dependency in qmlpuppet and Qt 5

Change-Id: Ie198a0e3d8342fb62ff51ec2475134cdf4f9dcea
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
(cherry picked from commit ad535b5b62)
This commit is contained in:
Thomas Hartmann
2012-09-26 13:53:31 +02:00
parent e82e6749a0
commit 7da5ba30ec
2 changed files with 8 additions and 4 deletions
@@ -43,7 +43,7 @@
#include <QFileInfo>
#include <QFileSystemWatcher>
#include <QPixmapCache>
#ifndef QT_NO_WEBKIT
#if !defined(QT_NO_WEBKIT) && QT_VERSION < 0x050000
#include <QGraphicsWebView>
#endif
#include <QGraphicsObject>
@@ -801,7 +801,7 @@ void allSubObject(QObject *object, QObjectList &objectList)
static void disableTiledBackingStore(QObject *object)
{
#ifndef QT_NO_WEBKIT
#if !defined(QT_NO_WEBKIT) && QT_VERSION < 0x050000
QGraphicsWebView *webView = qobject_cast<QGraphicsWebView*>(object);
if (webView)
webView->settings()->setAttribute(QWebSettings::TiledBackingStoreEnabled, false);
@@ -6,8 +6,12 @@ greaterThan(QT_MAJOR_VERSION, 4) {
QT += declarative
}
contains (QT_CONFIG, webkit) {
QT += webkit
greaterThan(QT_MAJOR_VERSION, 4) {
} else {
contains (QT_CONFIG, webkit) {
QT += webkit
}
}
DEFINES += QWEAKPOINTER_ENABLE_ARROW