aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/evaluator.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-01-03 12:15:58 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2018-01-05 09:16:19 +0000
commit2b0f23a49fb63d091c635ce449545a4ec9f5e5cc (patch)
treea9c528051c2abefe68643efc27035697a3952dde /src/lib/corelib/language/evaluator.h
parent53276ef5c99aae0a24771d1f3197b1547d33c036 (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/evaluator.h')
-rw-r--r--src/lib/corelib/language/evaluator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/corelib/language/evaluator.h b/src/lib/corelib/language/evaluator.h
index ef3107676..08c37c85e 100644
--- a/src/lib/corelib/language/evaluator.h
+++ b/src/lib/corelib/language/evaluator.h
@@ -105,6 +105,7 @@ private:
void onItemPropertyChanged(Item *item);
bool evaluateProperty(QScriptValue *result, const Item *item, const QString &name,
bool *propertyWasSet);
+ bool isNonDefaultValue(const Item *item, const QString &name) const;
ScriptEngine *m_scriptEngine;
EvaluatorScriptClass *m_scriptClass;