diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-07-31 14:47:56 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-07-31 17:37:43 +0200 |
commit | 1eef55e98f7dddf0aacbf43f369d7bd11b06745e (patch) | |
tree | e25acef27ab1d5915dd237eb0b9ca263a4945539 /src/lib/corelib/api | |
parent | 3b4f5d6acae1338e8f188d02b6348b0c20727a16 (diff) |
add getter/setters for Artifact::fileTags
The setters take care of keeping the product's artifact-by-filetags hash
up to date. Before, one had to set up the artifact's file tags before
insertArtifactToProduct was called. Otherwise the hash didn't get updated.
Change-Id: Ibb530d2c992d72c0a99152009b4e6eecbf770098
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/api')
-rw-r--r-- | src/lib/corelib/api/project.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/api/project.cpp b/src/lib/corelib/api/project.cpp index 93daf433f..ab440c753 100644 --- a/src/lib/corelib/api/project.cpp +++ b/src/lib/corelib/api/project.cpp @@ -640,7 +640,7 @@ void ProjectPrivate::retrieveProjectData(ProjectData &projectData, foreach (const Artifact * const a, resolvedProduct->targetArtifacts()) { TargetArtifact ta; ta.d->filePath = a->filePath(); - ta.d->fileTags = a->fileTags.toStringList(); + ta.d->fileTags = a->fileTags().toStringList(); ta.d->properties.d->m_map = a->properties; ta.d->isValid = true; product.d->targetArtifacts << ta; @@ -920,7 +920,7 @@ QList<InstallableFile> Project::installableFilesForProduct(const ProductData &pr if (targetFilePath.isEmpty()) continue; f.d->sourceFilePath = artifact->filePath(); - f.d->fileTags = artifact->fileTags.toStringList(); + f.d->fileTags = artifact->fileTags().toStringList(); f.d->isValid = true; installableFiles << f; } |