aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compileddata_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r--src/qml/compiler/qv4compileddata_p.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h
index e8d2a73278..0a404a454f 100644
--- a/src/qml/compiler/qv4compileddata_p.h
+++ b/src/qml/compiler/qv4compileddata_p.h
@@ -254,7 +254,12 @@ struct Binding
Type_Object
};
- quint32 type;
+ enum Flags {
+ IsSignalHandlerExpression = 0x1
+ };
+
+ quint32 flags : 16;
+ quint32 type : 16;
union {
bool b;
double d;
@@ -263,6 +268,8 @@ struct Binding
} value;
quint32 stringIndex; // Set for Type_String and Type_Script (the latter because of script strings)
+ Location location;
+
QString valueAsString(const Unit *unit) const;
double valueAsNumber() const
{