aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/artifactset.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-07-31 11:47:02 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-07-31 16:52:46 +0200
commit885e66e13c7b6eedbda4754989f5fb894ba37e44 (patch)
treeb4527290afc7e75c59262210681511ed48041c11 /src/lib/corelib/buildgraph/artifactset.cpp
parent2231d4966430caa4e1c0d56f0b2c6cd2533e7ba4 (diff)
add trace output for RuleNode::apply
Change-Id: Icbb514d6ec2b13f2660cf86003aea0c6bbd8e132 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/buildgraph/artifactset.cpp')
-rw-r--r--src/lib/corelib/buildgraph/artifactset.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/artifactset.cpp b/src/lib/corelib/buildgraph/artifactset.cpp
index 0010e81fe..eea4ccf65 100644
--- a/src/lib/corelib/buildgraph/artifactset.cpp
+++ b/src/lib/corelib/buildgraph/artifactset.cpp
@@ -53,6 +53,19 @@ ArtifactSet &ArtifactSet::unite(const ArtifactSet &other)
return *this;
}
+QStringList ArtifactSet::toStringList() const
+{
+ QStringList sl;
+ foreach (Artifact *a, *this)
+ sl += a->filePath();
+ return sl;
+}
+
+QString ArtifactSet::toString() const
+{
+ return QLatin1Char('[') + toStringList().join(QLatin1String(", ")) + QLatin1Char(']');
+}
+
ArtifactSet ArtifactSet::fromNodeSet(const NodeSet &nodes)
{
ArtifactSet result;