17 #include <QtScript/QScriptEngine> 28 static QScriptValue
clone(
const QScriptValue &prototype, QScriptEngine * engine);
34 static void copyRecursivelyTo(
const QScriptValue &prototype, QScriptValue &target, QScriptEngine *engine);
37 static bool hasProperty(
const QScriptValue &
object,
const QString &property);
static QScriptValue clone(const QScriptValue &prototype, QScriptEngine *engine)
Creates new instance of script value copying there all insufficient data from prototype.
Definition: utils.cpp:23
Definition: trikCommunicator.h:23
static void copyRecursivelyTo(const QScriptValue &prototype, QScriptValue &target, QScriptEngine *engine)
Copies data into target from prototype.
Definition: utils.cpp:81
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...
Definition: utils.cpp:68
Contains common useful methods for QtScript usage.
Definition: utils.h:22