From a5cd588e3b67b6138e70e64a6486dafef73df1c7 Mon Sep 17 00:00:00 2001
From: Christian Kandeler <christian.kandeler@digia.com>
Date: Tue, 24 Sep 2013 16:28:00 +0200
Subject: [PATCH] Help plugin: Synchronize qmake and qbs project files.

We now use Qt Webkit in the qbs build as well.

Change-Id: Ib27a0d795bca3b266ee405ce2d925a96297f8c25
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
---
 src/plugins/help/help.qbs | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

diff --git a/src/plugins/help/help.qbs b/src/plugins/help/help.qbs
index 1d3cd481ef2..ad98caceaa6 100644
--- a/src/plugins/help/help.qbs
+++ b/src/plugins/help/help.qbs
@@ -5,14 +5,10 @@ import "../QtcPlugin.qbs" as QtcPlugin
 QtcPlugin {
     name: "Help"
 
-    Depends { id: qtcore; name: "Qt.core" }
+    Depends { name: "Qt"; submodules: ["core", "help", "network", "webkit"]; }
     Depends {
-        condition: qtcore.versionMajor == 4
-        name: "Qt"; submodules: ["widgets", "help", "webkit", "network"]
-    }
-    Depends {
-        condition: qtcore.versionMajor >= 5
-        name: "Qt"; submodules: ["widgets", "help", "network", "printsupport"]
+        condition: Qt.core.versionMajor >= 5;
+        name: "Qt"; submodules: ["printsupport", "webkitwidgets"];
     }
 
     Depends { name: "Core" }
@@ -20,13 +16,7 @@ QtcPlugin {
     Depends { name: "Locator" }
     Depends { name: "app_version_header" }
 
-    cpp.defines: {
-        var list = base;
-        if (qtcore.versionMajor >= 5)
-            list.push("QT_NO_WEBKIT");
-        list.push("QT_CLUCENE_SUPPORT");
-        return list;
-    }
+    cpp.defines: base.concat(["QT_CLUCENE_SUPPORT"])
 
     // We include headers from src/shared/help, and their sources include headers from here...
     cpp.includePaths: base.concat([sharedSources.prefix, path])
-- 
GitLab