summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlparser.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-09-23 12:29:56 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-09-23 12:29:56 (GMT)
commitb0bc605e2ede4466aabf5b5da040e5801dbf9156 (patch)
tree4db2a40ca239bbde9df52580064a9a6c2db921e6 /src/declarative/qml/qmlparser.cpp
parent3baf0c6d7d8098c6226c0ffade2b6740b0bc96cc (diff)
downloadQt-b0bc605e2ede4466aabf5b5da040e5801dbf9156.zip
Qt-b0bc605e2ede4466aabf5b5da040e5801dbf9156.tar.gz
Qt-b0bc605e2ede4466aabf5b5da040e5801dbf9156.tar.bz2
Make more qmlecmascript tests pass
Test cases constantsOverrideBindings, outerBindingOverridesInnerBinding and aliasPropertyAndBinding now pass.
Diffstat (limited to 'src/declarative/qml/qmlparser.cpp')
-rw-r--r--src/declarative/qml/qmlparser.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlparser.cpp b/src/declarative/qml/qmlparser.cpp
index 40cdd11..39fe1e2 100644
--- a/src/declarative/qml/qmlparser.cpp
+++ b/src/declarative/qml/qmlparser.cpp
@@ -84,6 +84,15 @@ QmlParser::Object::~Object()
if (prop.defaultValue) prop.defaultValue->release();
}
+void Object::setBindingBit(int b)
+{
+ while (bindingBitmask.size() < 4 * (1 + b / 32))
+ bindingBitmask.append(char(0));
+
+ quint32 *bits = (quint32 *)bindingBitmask.data();
+ bits[b / 32] |= (1 << (b % 32));
+}
+
const QMetaObject *Object::metaObject() const
{
if (!metadata.isEmpty() && metatype)