src/declarative/qml/qdeclarativecontext_p.h
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
   106     static QObject *context_at(QDeclarativeListProperty<QObject> *, int);
   106     static QObject *context_at(QDeclarativeListProperty<QObject> *, int);
   107 };
   107 };
   108 
   108 
   109 class QDeclarativeComponentAttached;
   109 class QDeclarativeComponentAttached;
   110 class QDeclarativeGuardedContextData;
   110 class QDeclarativeGuardedContextData;
   111 class QDeclarativeContextData
   111 class Q_AUTOTEST_EXPORT QDeclarativeContextData
   112 {
   112 {
   113 public:
   113 public:
   114     QDeclarativeContextData();
   114     QDeclarativeContextData();
   115     QDeclarativeContextData(QDeclarativeContext *);
   115     QDeclarativeContextData(QDeclarativeContext *);
   116     void clearExpressions();
   116     void clearExpressions();
   196 
   196 
   197     // Linked list of uses of the Component attached property in this
   197     // Linked list of uses of the Component attached property in this
   198     // context
   198     // context
   199     QDeclarativeComponentAttached *componentAttached;
   199     QDeclarativeComponentAttached *componentAttached;
   200 
   200 
       
   201     // Return the outermost id for obj, if any.
   201     QString findObjectId(const QObject *obj) const;
   202     QString findObjectId(const QObject *obj) const;
   202 
   203 
   203     static QDeclarativeContextData *get(QDeclarativeContext *context) {
   204     static QDeclarativeContextData *get(QDeclarativeContext *context) {
   204         return QDeclarativeContextPrivate::get(context)->data;
   205         return QDeclarativeContextPrivate::get(context)->data;
   205     }
   206     }