diff options
author | jkobus <jaroslaw.kobus@theqtcompany.com> | 2014-12-18 14:59:52 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2015-01-19 16:27:58 +0100 |
commit | 668e053c62d4a2dae5f38e454fac00df74eeeb03 (patch) | |
tree | 6d7f8acffc163c44db404979d0db2d8f624536b5 /src/libs/installer/component.cpp | |
parent | 46b8eb8d6713e0e592c94b090baece0613b2503a (diff) |
Introduce InstallAction property for component
Fixes calculation of component size inside
maintenance tool. Don't manipulate check state
of components while calculating dependencies.
Prepare feature: live preview of dependencies.
Change-Id: I0485df8383bc9149a996456e09878fc5676bb27b
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r-- | src/libs/installer/component.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index f73aefbfb..494e61dbd 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -342,8 +342,10 @@ quint64 Component::updateUncompressedSize() { quint64 size = 0; - if (isSelected()) + if (installAction() == ComponentModelHelper::Install + || installAction() == ComponentModelHelper::KeepInstalled) { size = d->m_vars.value(scUncompressedSize).toLongLong(); + } foreach (Component* comp, d->m_allChildComponents) size += comp->updateUncompressedSize(); |