diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-14 01:32:03 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-14 01:32:03 (GMT) |
commit | 0a10af2463d73106c2f1268553aa6e60890f6180 (patch) | |
tree | 2ad916b6a98f16a4c3692a9e227da782dd3c42ac /src/declarative/qml/qmlcomponent_p.h | |
parent | c8198d40af104b5555a975b3156e9d5ba1981e25 (diff) | |
download | Qt-0a10af2463d73106c2f1268553aa6e60890f6180.zip Qt-0a10af2463d73106c2f1268553aa6e60890f6180.tar.gz Qt-0a10af2463d73106c2f1268553aa6e60890f6180.tar.bz2 |
Add Component::onCompleted attached property
Diffstat (limited to 'src/declarative/qml/qmlcomponent_p.h')
-rw-r--r-- | src/declarative/qml/qmlcomponent_p.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcomponent_p.h b/src/declarative/qml/qmlcomponent_p.h index 2d0c77f..7eedfbd 100644 --- a/src/declarative/qml/qmlcomponent_p.h +++ b/src/declarative/qml/qmlcomponent_p.h @@ -70,12 +70,13 @@ class QmlComponent; class QmlEngine; class QmlCompiledData; +class QmlComponentAttached; class QmlComponentPrivate : public QObjectPrivate { Q_DECLARE_PUBLIC(QmlComponent) public: - QmlComponentPrivate() : typeData(0), progress(0.), start(-1), count(-1), cc(0), completePending(false), engine(0) {} + QmlComponentPrivate() : typeData(0), progress(0.), start(-1), count(-1), cc(0), completePending(false), componentAttacheds(0), engine(0) {} QObject *create(QmlContext *context, const QBitField &); @@ -98,6 +99,7 @@ public: QList<QmlEnginePrivate::SimpleList<QmlAbstractBinding> > bindValues; QList<QmlEnginePrivate::SimpleList<QmlParserStatus> > parserStatus; + QmlComponentAttached *componentAttacheds; bool completePending; @@ -110,6 +112,23 @@ public: } }; +class QmlComponentAttached : public QObject +{ + Q_OBJECT +public: + QmlComponentAttached(QObject *parent = 0); + ~QmlComponentAttached(); + + QmlComponentAttached **prev; + QmlComponentAttached *next; + +signals: + void completed(); + +private: + friend class QmlComponentPrivate; +}; + QT_END_NAMESPACE #endif // QMLCOMPONENT_P_H |