diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-02 08:28:37 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-05 02:40:48 (GMT) |
commit | 44638d0f310aad59336ad44f427351a4b9c40f15 (patch) | |
tree | c0f3619d671561ddc3d0eb3f5a77155cff6ed2b2 /src/declarative | |
parent | 5b37c01aa721057ad0cbef16a79cf179e3c53934 (diff) | |
download | Qt-44638d0f310aad59336ad44f427351a4b9c40f15.zip Qt-44638d0f310aad59336ad44f427351a4b9c40f15.tar.gz Qt-44638d0f310aad59336ad44f427351a4b9c40f15.tar.bz2 |
Implement QmlValueTypeScriptClass::newObject()
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qmlvaluetypescriptclass.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlvaluetypescriptclass.cpp b/src/declarative/qml/qmlvaluetypescriptclass.cpp index da6c73d..503d64f 100644 --- a/src/declarative/qml/qmlvaluetypescriptclass.cpp +++ b/src/declarative/qml/qmlvaluetypescriptclass.cpp @@ -63,7 +63,8 @@ QmlValueTypeScriptClass::~QmlValueTypeScriptClass() QScriptValue QmlValueTypeScriptClass::newObject(QObject *object, int coreIndex, QmlValueType *type) { QmlValueTypeReference ref = { type, object, coreIndex }; - return QScriptValue(); + QScriptEngine *scriptEngine = QmlEnginePrivate::getScriptEngine(engine); + return scriptEngine->newObject(this, scriptEngine->newVariant(qVariantFromValue(ref))); } QmlValueTypeScriptClass::QueryFlags |