summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-08-10 16:33:56 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-08-16 10:11:13 +0300
commit2b53c4767b7f6378fa1bb855339f207f6a13c39e (patch)
treed4c48c891144bb076d80f9c5b3e2a0ef5120c2ef
parenta8b4b4da9db8c4bee2494157cecb2a474d92d2e3 (diff)
Doc: Minor function summary fix for component JS object
The "component::addDependency" and "component::addAutoDependOn" methods support also specifying a comma separated list of components in the same string parameter. Change-Id: I7f4d289d80d4efd485a0cfa64c6dda93bfc2f59a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
-rw-r--r--doc/scripting-api/component.qdoc4
-rw-r--r--src/libs/installer/component.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/scripting-api/component.qdoc b/doc/scripting-api/component.qdoc
index ffa2988a3..c253767b3 100644
--- a/doc/scripting-api/component.qdoc
+++ b/doc/scripting-api/component.qdoc
@@ -354,6 +354,8 @@
\qmlmethod void component::addDependency(string newDependency)
Adds a new component \a newDependency to the list of dependencies.
+ Alternatively, multiple components can be specified by separating each with
+ a comma.
\sa dependencies
*/
@@ -362,6 +364,8 @@
\qmlmethod void component::addAutoDependOn(string newDependOn)
Adds the component specified by \a newDependOn to the automatic depend-on list.
+ Alternatively, multiple components can be specified by separating each with
+ a comma.
\sa autoDependencies
*/
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp
index 5f897303d..3b8894b03 100644
--- a/src/libs/installer/component.cpp
+++ b/src/libs/installer/component.cpp
@@ -1299,6 +1299,8 @@ bool Component::validatePage()
/*!
Adds the component specified by \a newDependency to the list of dependencies.
+ Alternatively, multiple components can be specified by separating each with
+ a comma.
\sa {component::addDependency}{component.addDependency}
\sa dependencies
@@ -1320,6 +1322,8 @@ QStringList Component::dependencies() const
/*!
Adds the component specified by \a newDependOn to the automatic depend-on list.
+ Alternatively, multiple components can be specified by separating each with
+ a comma.
\sa {component::addAutoDependOn}{component.addAutoDependOn}
\sa autoDependencies