Ignore:
Timestamp:
Jul 9, 2010, 2:19:34 AM (15 years ago)
Author:
Simon Hausmann
Message:

Implementation of the QScriptValue::propertyFlags function.

Patch by Jedrzej Nowacki <[email protected]> on 2010-07-09
Reviewed by Simon Hausmann.

The function returns the flags of a property with the given name,
using a given mode to resolve the property. This is a simple
implementation that is sufficient to test the QScriptValueIterator.

[Qt] QScriptValue API should have a property flag accessor.
https://bugs.webkit.org/show_bug.cgi?id=41769

  • api/qscriptvalue.cpp:

(QScriptValue::propertyFlags):

  • api/qscriptvalue.h:
  • api/qscriptvalue_p.h:

(QScriptValuePrivate::propertyFlags):

  • tests/qscriptvalue/tst_qscriptvalue.cpp:

(tst_QScriptValue::propertyFlag_data):
(tst_QScriptValue::propertyFlag):

  • tests/qscriptvalue/tst_qscriptvalue.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/qt/api/qscriptvalue.h

    r62661 r62921  
    9797    void setProperty(const QScriptString& name, const QScriptValue& value, const PropertyFlags& flags = KeepExistingFlags);
    9898
     99    PropertyFlags propertyFlags(const QString& name, const ResolveFlags& mode = ResolvePrototype) const;
     100    PropertyFlags propertyFlags(const QScriptString& name, const ResolveFlags& mode = ResolvePrototype) const;
     101
    99102    QScriptEngine* engine() const;
    100103
Note: See TracChangeset for help on using the changeset viewer.