aboutsummaryrefslogtreecommitdiffstats
path: root/qbs
diff options
context:
space:
mode:
authorYuchen Deng <loaden@gmail.com>2012-06-19 15:36:27 +0800
committerJoerg Bornemann <joerg.bornemann@nokia.com>2012-06-19 11:22:40 +0200
commit0d20c5b796f1b240b875cb3a528e7fbcce8d274b (patch)
tree4c332b638fcf573b4abafdf265372eed7443a910 /qbs
parent0527a8bb70a0f094b34d60bbd5d390d9e86277f3 (diff)
Fix qbs code style
Change-Id: Ia3e4df528d391580064efbeeab75016335a4299d Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'qbs')
-rw-r--r--qbs/pluginspec/pluginspec.qbs11
1 files changed, 7 insertions, 4 deletions
diff --git a/qbs/pluginspec/pluginspec.qbs b/qbs/pluginspec/pluginspec.qbs
index f587382506..0e616df338 100644
--- a/qbs/pluginspec/pluginspec.qbs
+++ b/qbs/pluginspec/pluginspec.qbs
@@ -2,7 +2,7 @@ import qbs.base 1.0
import qbs.fileinfo 1.0 as FileInfo
Module {
- Depends { id: qtcore; name: "qt.core" }
+ Depends { id: qtcore; name: "Qt.core" }
additionalProductFileTags: qtcore.versionMajor < 5 ? ["pluginSpec"] : ["pluginJSON"]
property int ide_version_major: project.ide_version_major
@@ -49,7 +49,7 @@ Module {
var inf = new TextFile(input.fileName);
var all = inf.readAll();
// replace quoted quotes
- all = all.replace(/\\\"/g, "\"");
+ all = all.replace(/\\\"/g, '"');
// replace config vars
vars['QTCREATOR_VERSION'] = qtcreator_version;
vars['IDE_VERSION_MAJOR'] = ide_version_major;
@@ -83,8 +83,11 @@ Module {
var xslFile = project.path + "/src/pluginjsonmetadata.xsl";
var xmlPatternsPath = product.modules["qt/core"].binPath + "/xmlpatterns";
var args = [
- "-no-format", "-output", output.fileName,
- xslFile, input.fileName
+ "-no-format",
+ "-output",
+ output.fileName,
+ xslFile,
+ input.fileName
];
var cmd = new Command(xmlPatternsPath, args);
cmd.description = "generating " + FileInfo.fileName(output.fileName);