diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-21 03:17:18 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-21 03:17:18 (GMT) |
commit | 549b45cd6b8201daaf889986278c75a6c7f62cf8 (patch) | |
tree | 6fb5ad47ff891d8dd54aa9aaa55c29ba635d2e8a /src/declarative/qml/qmlengine_p.h | |
parent | 7eb52559f44de7666c31ea28ce557eaca9177e9d (diff) | |
download | Qt-549b45cd6b8201daaf889986278c75a6c7f62cf8.zip Qt-549b45cd6b8201daaf889986278c75a6c7f62cf8.tar.gz Qt-549b45cd6b8201daaf889986278c75a6c7f62cf8.tar.bz2 |
Add vector() function as a built-in to QML
This makes it easier and more declarative to specify rotation axes:
axis: vector(0, 1, 0)
instead of:
axis.x: 0; axis.y: 1; axis.z: 0
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/qml/qmlengine_p.h')
-rw-r--r-- | src/declarative/qml/qmlengine_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine_p.h b/src/declarative/qml/qmlengine_p.h index aaf679f..4142872 100644 --- a/src/declarative/qml/qmlengine_p.h +++ b/src/declarative/qml/qmlengine_p.h @@ -204,6 +204,7 @@ public: static QScriptValue qmlScriptObject(QObject*, QmlEngine*); static QScriptValue createComponent(QScriptContext*, QScriptEngine*); static QScriptValue createQmlObject(QScriptContext*, QScriptEngine*); + static QScriptValue vector(QScriptContext*, QScriptEngine*); static QScriptEngine *getScriptEngine(QmlEngine *e) { return &e->d_func()->scriptEngine; } static QmlEnginePrivate *get(QmlEngine *e) { return e->d_func(); } |