aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorMarco Benelli <marco.benelli@qt.io>2018-02-27 13:13:51 +0100
committerMarco Benelli <marco.benelli@qt.io>2018-02-27 15:17:44 +0000
commit2acb365dac0b2fc20993a0244466f8abb0ff2221 (patch)
tree62edf04de802b9a580fb23b1c34cc3f094b2e521 /share
parent0474216e2ffa72cc67fe17964466b967de1c5be9 (diff)
qmljs: relax checks for qbs files
Types information for qbs is more limited that qml; this causes qtcreator to raise false positives. This patch relax the checks and provide some type information needed by qbs files generated by the wizards. Task-number: QTCREATORBUG-19757 Change-Id: I07a1dd9d8fedaf4c5c751c2f00643f15ae39127a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qml-type-descriptions/qbs-base.qmltypes154
1 files changed, 154 insertions, 0 deletions
diff --git a/share/qtcreator/qml-type-descriptions/qbs-base.qmltypes b/share/qtcreator/qml-type-descriptions/qbs-base.qmltypes
new file mode 100644
index 0000000000..e19fabc4d9
--- /dev/null
+++ b/share/qtcreator/qml-type-descriptions/qbs-base.qmltypes
@@ -0,0 +1,154 @@
+import QtQuick.tooling 1.0
+
+Module {
+ Component {
+ name: "AndroidApk"
+ exports: ["qbs/AndroidApk 1.0"]
+ prototype: "Product"
+ Property { name: "packageName"; type: "string"}
+ Property { name: "automaticSources"; type: "bool"}
+ Property { name: "legacyLayout"; type: "bool"}
+ Property { name: "sourceSetDir"; type: "string"}
+ Property { name: "resourceDir"; type: "string"}
+ Property { name: "assetsDir"; type: "string"}
+ Property { name: "sourcesDir"; type: "string"}
+ Property { name: "manifestFile"; type: "string"}
+ Property { name: "defaultManifestFile"; type: "string"; isReadonly: true }
+ }
+ Component {
+ name: "AppleApplicationDiskImage"
+ exports: ["qbs/AppleApplicationDiskImage 1.0"]
+ prototype: "AppleDiskImage"
+ Property { name: "sourceBase"; type: "string" }
+ Property { name: "absoluteSourceBase"; type: "string"; isReadonly: true}
+ Property { name: "symlinks"; type: "string"; isList: true }
+ Property { name: "stageDirectory"; type: "string"; isReadonly: true}
+
+ }
+ Component {
+ name: "AppleDiskImage"
+ exports: ["qbs/AppleDiskImage 1.0"]
+ prototype: "Product"
+ }
+ Component {
+ name: "ApplicationExtension"
+ exports: ["qbs/ApplicationExtension 1.0"]
+ prototype: "XPCService"
+ Property: { name: "_useLegacyExtensionLibraries"; type: "bool" }
+ Property: { name: "extensionAttributes"; type: "QVariant" }
+ Property: { name: "extensionPointIdentifier"; type: "string" }
+ Property: { name: "extensionPrincipalClass"; type: "string" }
+ }
+ Component {
+ name: "Application"
+ exports: ["qbs/Application 1.0"]
+ prototype: "NativeBinary"
+ }
+ Component {
+ name: "AutotestRunner"
+ exports: ["qbs/AutotestRunner 1.0"]
+ prototype: "Product"
+ }
+ Component {
+ name: "CppApplication"
+ exports: ["qbs/CppApplication 1.0"]
+ prototype: "Application"
+ }
+ Component {
+ name: "DynamicLibrary"
+ exports: ["qbs/DynamicLibrary 1.0"]
+ prototype: "Library"
+ }
+ Component {
+ name: "InnoSetup"
+ exports: ["qbs/InnoSetup 1.0"]
+ prototype: "Installer"
+ }
+ Component {
+ name: "Installer"
+ exports: ["qbs/Installer 1.0"]
+ prototype: "Product"
+ Property: { name: "dependsOnInstallables"; type: "bool" }
+ Property: { name: "auxiliaryInputs"; type: "string"; isList: true }
+ }
+ Component {
+ name: "InstallPackage"
+ exports: ["qbs/InstallPackage 1.0"]
+ prototype: "Product"
+ }
+ Component {
+ name: "JavaClassCollection"
+ exports: ["qbs/InstallPackage 1.0"]
+ prototype: "Product"
+ }
+ Component {
+ name: "JavaJarFile"
+ exports: ["qbs/JavaJarFile 1.0"]
+ prototype: "Product"
+ Property { name: "entryPoint"; type: "string" }
+ }
+ Component {
+ name: "Library"
+ exports: ["qbs/Library 1.0"]
+ prototype: "NativeBinary"
+ }
+ Component {
+ name: "LoadableModule"
+ exports: ["qbs/LoadableModule 1.0"]
+ prototype: "DynamicLibrary"
+ }
+ Component {
+ name: "NativeBinary"
+ exports: ["qbs/NativeBinary 1.0"]
+ prototype: "Product"
+ Property { name: "isForAndroid"; type: "bool" }
+ Property { name: "isForDarwin"; type: "bool" }
+ }
+ Component {
+ name: "NetModule"
+ exports: ["qbs/NetModule 1.0"]
+ prototype: "Product"
+ }
+ Component {
+ name: "NodeJSApplication"
+ exports: ["qbs/NodeJSApplication 1.0"]
+ prototype: "Product"
+ }
+ Component {
+ name: "NSISSetup"
+ exports: ["qbs/NSISSetup 1.0"]
+ prototype: "Installer"
+ }
+ Component {
+ name: "QtApplication"
+ exports: ["qbs/QtApplication 1.0"]
+ prototype: "CppApplication"
+ }
+ Component {
+ name: "QtGuiApplication"
+ exports: ["qbs/QtGuiApplication 1.0"]
+ prototype: "CppApplication"
+ Property { name: "linkDefaultQpaPlugin"; type: "bool" }
+ }
+ Component {
+ name: "StaticLibrary"
+ exports: ["qbs/StaticLibrary 1.0"]
+ prototype: "Library"
+ }
+ Component {
+ name: "WindowsInstallerPackage"
+ exports: ["qbs/WindowsInstallerPackage 1.0"]
+ prototype: "Installer"
+ }
+ Component {
+ name: "WindowsSetupPackage"
+ exports: ["qbs/WindowsSetupPackage 1.0"]
+ prototype: "Product"
+ }
+ Component {
+ name: "XPCService"
+ exports: ["qbs/XPCService 1.0"]
+ prototype: "Application"
+ Property { name: "xpcServiceType"; type: "string" }
+ }
+}