diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-08 03:49:09 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-08 03:53:03 (GMT) |
commit | 87d71b29a8c4239cb807f13ac9d009cef1ca1a69 (patch) | |
tree | 5889e80b9a96bb8b70f44a67d737e5464d2d72d3 /src/declarative/qml/qmlpropertycache_p.h | |
parent | f5ad8f76430b43c0a72c1bf41fae1d279948a0e0 (diff) | |
download | Qt-87d71b29a8c4239cb807f13ac9d009cef1ca1a69.zip Qt-87d71b29a8c4239cb807f13ac9d009cef1ca1a69.tar.gz Qt-87d71b29a8c4239cb807f13ac9d009cef1ca1a69.tar.bz2 |
Allow objects to be shared between QmlEngines
QTBUG-7957
Diffstat (limited to 'src/declarative/qml/qmlpropertycache_p.h')
-rw-r--r-- | src/declarative/qml/qmlpropertycache_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlpropertycache_p.h b/src/declarative/qml/qmlpropertycache_p.h index 8d54e35..efc4643 100644 --- a/src/declarative/qml/qmlpropertycache_p.h +++ b/src/declarative/qml/qmlpropertycache_p.h @@ -132,6 +132,9 @@ public: Data *property(int) const; QStringList propertyNames() const; + inline QmlEngine *qmlEngine() const; + static Data *property(QmlEngine *, QObject *, const QScriptDeclarativeClass::Identifier &, Data &); + static Data *property(QmlEngine *, QObject *, const QString &, Data &); protected: virtual void clear(); @@ -181,6 +184,11 @@ bool QmlPropertyCache::ValueTypeData::operator==(const ValueTypeData &o) valueTypePropType == o.valueTypePropType; } +QmlEngine *QmlPropertyCache::qmlEngine() const +{ + return engine; +} + QT_END_NAMESPACE #endif // QMLPROPERTYCACHE_P_H |