diff options
author | kh1 <karsten.heimrich@digia.com> | 2013-02-18 16:43:09 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2013-02-19 15:43:04 +0100 |
commit | 8092e354949370be204071258661aefad6f2b58e (patch) | |
tree | 3ab35c6e7f791c48f9cafe7a5c2c5efcc114d0c1 /src/libs/installer/component.cpp | |
parent | 5cd196bfc78098d02100e48811b5d5d696058d96 (diff) |
Remove RunMode enum, it's useless and clutters the API.
Change-Id: I4323a0d66bda362ccee71a19352c37c9ac1b51e1
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r-- | src/libs/installer/component.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index a2ce4bc26..ddc74328d 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -303,14 +303,14 @@ void Component::removeComponent(Component *component) } /*! - Returns a list of child components. If \a recursive is set to true, the returned list - contains not only the direct children, but all ancestors. Note: The returned list does include ALL - children, non virtual components as well as virtual components. + Returns a list of child components. If \a recursive is set to true, the returned list contains not only + the direct children, but all ancestors. Note: The returned list does include ALL children, non virtual + components as well as virtual components. */ -QList<Component*> Component::childComponents(bool recursive, RunMode runMode) const +QList<Component*> Component::childComponents(bool recursive) const { QList<Component*> result; - if (runMode == UpdaterMode) + if (d->m_core->isUpdater()) return result; if (!recursive) @@ -318,7 +318,7 @@ QList<Component*> Component::childComponents(bool recursive, RunMode runMode) co foreach (Component *component, d->m_allChildComponents) { result.append(component); - result += component->childComponents(true, runMode); + result += component->childComponents(true); } return result; } |