diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-07-28 04:45:11 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-07-28 04:45:11 (GMT) |
commit | 70921d484ec1bd75d8d86f127ebbb91b1138eb06 (patch) | |
tree | c0cbc51e8032bf7f4346c55edb85c4b32323475d /src/declarative/qml/qmlengine_p.h | |
parent | f7ddf86cb2bab6ca726ef9c8c091b83a12cbf9ed (diff) | |
download | Qt-70921d484ec1bd75d8d86f127ebbb91b1138eb06.zip Qt-70921d484ec1bd75d8d86f127ebbb91b1138eb06.tar.gz Qt-70921d484ec1bd75d8d86f127ebbb91b1138eb06.tar.bz2 |
Revert "Make private stuff public"
This reverts commit 0cdd8518090be320fa89efaa11ced32215cc2ccc.
We've made a decision on apps interacting with the engine - not in the
initial version.
Diffstat (limited to 'src/declarative/qml/qmlengine_p.h')
-rw-r--r-- | src/declarative/qml/qmlengine_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine_p.h b/src/declarative/qml/qmlengine_p.h index 7b459e9..18cdd83 100644 --- a/src/declarative/qml/qmlengine_p.h +++ b/src/declarative/qml/qmlengine_p.h @@ -193,9 +193,12 @@ public: bool resolveType(const Imports&, const QByteArray& type, QmlType** type_return, QUrl* url_return, ImportedNamespace** ns_return=0) const; void resolveTypeInNamespace(ImportedNamespace*, const QByteArray& type, QmlType** type_return, QUrl* url_return ) const; + + static QScriptValue qmlScriptObject(QObject*, QmlEngine*); static QScriptValue createComponent(QScriptContext*, QScriptEngine*); static QScriptValue createQmlObject(QScriptContext*, QScriptEngine*); + static QScriptEngine *getScriptEngine(QmlEngine *e) { return &e->d_func()->scriptEngine; } static QmlEnginePrivate *get(QmlEngine *e) { return e->d_func(); } }; |