trikRuntime
trikScriptRunner::Utils Class Reference

Contains common useful methods for QtScript usage. More...

#include <utils.h>

Static Public Member Functions

static QScriptValue clone (const QScriptValue &prototype, QScriptEngine *engine)
 Creates new instance of script value copying there all insufficient data from prototype. More...
 
static void copyRecursivelyTo (const QScriptValue &prototype, QScriptValue &target, QScriptEngine *engine)
 Copies data into target from prototype. More...
 
static bool hasProperty (const QScriptValue &object, const QString &property)
 Returns true if a given script value is an object and if it has a property with a given name. More...
 

Detailed Description

Contains common useful methods for QtScript usage.

Member Function Documentation

QScriptValue Utils::clone ( const QScriptValue &  prototype,
QScriptEngine *  engine 
)
static

Creates new instance of script value copying there all insufficient data from prototype.

Parameters
prototype- object to copy.
void Utils::copyRecursivelyTo ( const QScriptValue &  prototype,
QScriptValue &  target,
QScriptEngine *  engine 
)
static

Copies data into target from prototype.

Parameters
prototype- copy source.
target- copy target.
bool Utils::hasProperty ( const QScriptValue &  object,
const QString &  property 
)
static

Returns true if a given script value is an object and if it has a property with a given name.


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