summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/rulesapplicator.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-06-07 10:58:40 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-06-07 15:21:49 +0200
commit0a70dce41160783c726f822eff81ae30b83acfdc (patch)
tree94dcf0c2aa5995084dcfba9999c803ef883ea9bc /src/lib/buildgraph/rulesapplicator.cpp
parent46dde94890f89299cbad4097d82fdb9051fbbcef (diff)
downloadqbs-0a70dce41160783c726f822eff81ae30b83acfdc.tar.gz
fix checkForPropertyChanges for product values
checkForPropertyChanges always returned true, because we stored tracked product properties with the module name "product". Introduce the enum Property::Kind instead of abusing the module name. Task-number: QBS-305 Change-Id: I51a1eb28f0bb3245d7e926685f3a0fe01f981959 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/buildgraph/rulesapplicator.cpp')
-rw-r--r--src/lib/buildgraph/rulesapplicator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/buildgraph/rulesapplicator.cpp b/src/lib/buildgraph/rulesapplicator.cpp
index b5ec6ffde..96054c328 100644
--- a/src/lib/buildgraph/rulesapplicator.cpp
+++ b/src/lib/buildgraph/rulesapplicator.cpp
@@ -328,7 +328,8 @@ void RulesApplicator::onPropertyRead(const QScriptValue &object, const QString &
const QScriptValue &value)
{
if (object.objectId() == m_productObjectId)
- engine()->addProperty(Property(QLatin1String("product"), name, value.toVariant()));
+ engine()->addProperty(
+ Property(QString(), name, value.toVariant(), Property::PropertyInProduct));
}
} // namespace Internal