Ignore:
Timestamp:
Jun 25, 2010, 6:39:17 AM (15 years ago)
Author:
[email protected]
Message:

2010-06-25 Jedrzej Nowacki <[email protected]>

Reviewed by Simon Hausmann.

New QtScript API; setPrototype() and prototype().

This patch implements QScriptValue's prototype accessors.

[Qt] QScriptValue should have accessors to a prototype.
https://bugs.webkit.org/show_bug.cgi?id=39356

  • qt/api/qscriptvalue.cpp: (QScriptValue::prototype): (QScriptValue::setPrototype):
  • qt/api/qscriptvalue.h:
  • qt/api/qscriptvalue_p.h: (QScriptValuePrivate::prototype): (QScriptValuePrivate::setPrototype):
  • qt/tests/qscriptvalue/tst_qscriptvalue.cpp: (tst_QScriptValue::getSetPrototype):
  • qt/tests/qscriptvalue/tst_qscriptvalue.h:
File:
1 edited

Legend:

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

    r60725 r61860  
    6060
    6161    QScriptValue& operator=(const QScriptValue& other);
     62
     63    QScriptValue prototype() const;
     64    void setPrototype(const QScriptValue& prototype);
     65
    6266    bool equals(const QScriptValue& other) const;
    6367    bool strictlyEquals(const QScriptValue& other) const;
Note: See TracChangeset for help on using the changeset viewer.