diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-01-03 12:15:58 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2018-01-05 09:16:19 +0000 |
commit | 2b0f23a49fb63d091c635ce449545a4ec9f5e5cc (patch) | |
tree | a9c528051c2abefe68643efc27035697a3952dde /src/lib/corelib/language/projectresolver.cpp | |
parent | 53276ef5c99aae0a24771d1f3197b1547d33c036 (diff) |
Mark values that were set up as the defaults of built-in item properties
There are several contexts in which we need to find out whether a
property value of a built-in item is the default one that was created by
us when initializing the item.
Rather than using heuristics for that, we now set a flag on such values,
so we can always get the correct information.
Change-Id: Ieb0d87a423d6c6836a2c1d60ccf503fa0b4f801b
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/lib/corelib/language/projectresolver.cpp')
-rw-r--r-- | src/lib/corelib/language/projectresolver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/language/projectresolver.cpp b/src/lib/corelib/language/projectresolver.cpp index 7f3df3047..9bcff9a1a 100644 --- a/src/lib/corelib/language/projectresolver.cpp +++ b/src/lib/corelib/language/projectresolver.cpp @@ -190,7 +190,7 @@ QString ProjectResolver::verbatimValue(const ValueConstPtr &value, bool *propert value); result = sourceCodeForEvaluation(sourceValue); if (propertyWasSet) - *propertyWasSet = (result != StringConstants::undefinedValue()); + *propertyWasSet = !sourceValue->isBuiltinDefaultValue(); } else { if (propertyWasSet) *propertyWasSet = false; |