src/script/bridge/qscriptqobject_p.h
changeset 23 89e065397ea6
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
22:79de32ba3296 23:89e065397ea6
   302     inline const QMetaObject *value() const { return data->value; }
   302     inline const QMetaObject *value() const { return data->value; }
   303     inline void setValue(const QMetaObject* value) { data->value = value; }
   303     inline void setValue(const QMetaObject* value) { data->value = value; }
   304 
   304 
   305     static WTF::PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
   305     static WTF::PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
   306     {
   306     {
   307         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType));
   307         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, JSC::ImplementsHasInstance));
   308     }
   308     }
   309 
   309 
   310 protected:
   310 protected:
   311     Data *data;
   311     Data *data;
   312 };
   312 };