summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcomponent_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-14 01:32:03 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-14 01:32:03 (GMT)
commit0a10af2463d73106c2f1268553aa6e60890f6180 (patch)
tree2ad916b6a98f16a4c3692a9e227da782dd3c42ac /src/declarative/qml/qmlcomponent_p.h
parentc8198d40af104b5555a975b3156e9d5ba1981e25 (diff)
downloadQt-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.h21
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