diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-07-21 06:38:15 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-07-21 06:38:15 (GMT) |
commit | d2ad09f42db2b6b80427918261f96081eaabfe6c (patch) | |
tree | 99da5655d3e3a1e429ec717fd3c97de5f0db7efe /src/declarative/qml/qmlcomponent.cpp | |
parent | cf851eced1d03c9d839626f86d00fd0734949c9d (diff) | |
download | Qt-d2ad09f42db2b6b80427918261f96081eaabfe6c.zip Qt-d2ad09f42db2b6b80427918261f96081eaabfe6c.tar.gz Qt-d2ad09f42db2b6b80427918261f96081eaabfe6c.tar.bz2 |
Move the Script interface of QmlComponent to QmlBindableComponent
Diffstat (limited to 'src/declarative/qml/qmlcomponent.cpp')
-rw-r--r-- | src/declarative/qml/qmlcomponent.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp index 4e39d7f..0fdba64 100644 --- a/src/declarative/qml/qmlcomponent.cpp +++ b/src/declarative/qml/qmlcomponent.cpp @@ -431,23 +431,6 @@ QmlComponent::QmlComponent(QmlComponentPrivate &dd, QObject *parent) { } -/*! - Create a script object instance from this component. Returns a null - script object if creation failed. It will create the instance in the - engine's \l {QmlEngine::rootContext()}{root context}. - - Similar to QmlComponent::create(), but creates an object suitable - for usage within scripts. -*/ -QScriptValue QmlComponent::createObject() -{ - Q_D(QmlComponent); - QObject* ret = create(); - if(ret) - return QmlEngine::qmlScriptObject(ret, d->engine); - else - return d->engine->scriptEngine()->nullValue(); -} /*! Create an object instance from this component. Returns 0 if creation |