summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlengine_p.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-21 03:17:18 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-21 03:17:18 (GMT)
commit549b45cd6b8201daaf889986278c75a6c7f62cf8 (patch)
tree6fb5ad47ff891d8dd54aa9aaa55c29ba635d2e8a /src/declarative/qml/qmlengine_p.h
parent7eb52559f44de7666c31ea28ce557eaca9177e9d (diff)
downloadQt-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.h1
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(); }