Qt 4.8
Static Public Functions | List of all members
Element Class Reference
Inheritance diagram for Element:
Node

Static Public Functions

static QScriptValue prototype (QScriptEngine *)
 
- Static Public Functions inherited from Node
static QScriptValue attributes (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue childNodes (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue create (QScriptEngine *, NodeImpl *)
 
static QScriptValue firstChild (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue lastChild (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue nextSibling (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue nodeName (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue nodeType (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue nodeValue (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue parentNode (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue previousSibling (QScriptContext *context, QScriptEngine *engine)
 
static QScriptValue prototype (QScriptEngine *)
 

Additional Inherited Members

- Public Functions inherited from Node
bool isNull () const
 
 Node ()
 
 Node (const Node &o)
 
 ~Node ()
 
- Public Variables inherited from Node
NodeImpld
 

Detailed Description

Definition at line 262 of file qdeclarativexmlhttprequest.cpp.

Functions

◆ prototype()

QScriptValue Element::prototype ( QScriptEngine engine)
static

Definition at line 518 of file qdeclarativexmlhttprequest.cpp.

Referenced by Node::create().

519 {
520  QScriptValue proto = engine->newObject();
521  proto.setPrototype(Node::prototype(engine));
522 
524 
525  return proto;
526 }
QScriptValue newFunction(FunctionSignature signature, int length=0)
Creates a QScriptValue that wraps a native (C++) function.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static QScriptValue nodeName(QScriptContext *context, QScriptEngine *engine)
static QScriptValue prototype(QScriptEngine *)
QScriptValue newObject()
Creates a QtScript object of class Object.
void setProperty(const QString &name, const QScriptValue &value, const PropertyFlags &flags=KeepExistingFlags)
Sets the value of this QScriptValue's property with the given name to the given value.
void setPrototype(const QScriptValue &prototype)
If this QScriptValue is an object, sets the internal prototype (__proto__ property) of this object to...
The QScriptValue class acts as a container for the Qt Script data types.
Definition: qscriptvalue.h:57

The documentation for this class was generated from the following file: