Correct handling of CONSTANT properties
authorAaron Kennedy <aaron.kennedy@nokia.com>
Wed, 15 Jun 2011 00:03:50 +0000 (10:03 +1000)
committerAaron Kennedy <aaron.kennedy@nokia.com>
Wed, 15 Jun 2011 00:03:50 +0000 (10:03 +1000)
Were being marked as missing a notifier instead.

src/declarative/qml/v8/qv8qobjectwrapper.cpp

index 8fbb1cf..bf9229b 100644 (file)
@@ -829,7 +829,7 @@ v8::Local<v8::Object> QDeclarativePropertyCache::newQObject(QObject *object, QV8
                 int notifyIndex = property->notifyIndex;
                 if (property->isConstant()) notifyIndex = 0;
                 else if (notifyIndex == -1) notifyIndex = 0x7FFF;
-                uint32_t data = (property->notifyIndex & 0x7FFF) << 16 | property->coreIndex;
+                uint32_t data = (notifyIndex & 0x7FFF) << 16 | property->coreIndex;
 
                 QString name = iter.key();
                 if (name == toString || name == destroy)