diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-06 08:32:25 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-06 08:32:25 (GMT) |
commit | d641b621077d5cc81ce7b3de92af9a0f6d47f4d6 (patch) | |
tree | a6d367c55d3d2ec41cf8bf92a439c8cc14c717d8 /src/declarative/qml/qml.h | |
parent | 6c7b88af807cbd2b4d824b8fca0f199ae1413432 (diff) | |
download | Qt-d641b621077d5cc81ce7b3de92af9a0f6d47f4d6.zip Qt-d641b621077d5cc81ce7b3de92af9a0f6d47f4d6.tar.gz Qt-d641b621077d5cc81ce7b3de92af9a0f6d47f4d6.tar.bz2 |
Doc
Diffstat (limited to 'src/declarative/qml/qml.h')
-rw-r--r-- | src/declarative/qml/qml.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qml.h b/src/declarative/qml/qml.h index 1990b7f..cd01f6a 100644 --- a/src/declarative/qml/qml.h +++ b/src/declarative/qml/qml.h @@ -93,10 +93,10 @@ class QmlEngine; Q_DECLARATIVE_EXPORT void qmlExecuteDeferred(QObject *); Q_DECLARATIVE_EXPORT QmlContext *qmlContext(const QObject *); Q_DECLARATIVE_EXPORT QmlEngine *qmlEngine(const QObject *); -Q_DECLARATIVE_EXPORT QObject *qmlAttachedPropertiesObjectById(int, const QObject *); +Q_DECLARATIVE_EXPORT QObject *qmlAttachedPropertiesObjectById(int, const QObject *, bool create = true); template<typename T> -QObject *qmlAttachedPropertiesObject(const QObject *obj) +QObject *qmlAttachedPropertiesObject(const QObject *obj, bool create = true) { // ### is this threadsafe? static int idx = -1; @@ -107,7 +107,7 @@ QObject *qmlAttachedPropertiesObject(const QObject *obj) if (idx == -1 || !obj) return 0; - return qmlAttachedPropertiesObjectById(idx, obj); + return qmlAttachedPropertiesObjectById(idx, obj, create); } QT_END_NAMESPACE |