77 virtual bool isValid() const = 0; |
77 virtual bool isValid() const = 0; |
78 virtual QDeclarativeItem *item(int index, bool complete=true) = 0; |
78 virtual QDeclarativeItem *item(int index, bool complete=true) = 0; |
79 virtual ReleaseFlags release(QDeclarativeItem *item) = 0; |
79 virtual ReleaseFlags release(QDeclarativeItem *item) = 0; |
80 virtual bool completePending() const = 0; |
80 virtual bool completePending() const = 0; |
81 virtual void completeItem() = 0; |
81 virtual void completeItem() = 0; |
82 virtual QVariant evaluate(int index, const QString &expression, QObject *objectContext) = 0; |
|
83 virtual QString stringValue(int, const QString &) { return QString(); } |
82 virtual QString stringValue(int, const QString &) { return QString(); } |
84 |
83 |
85 virtual int indexOf(QDeclarativeItem *item, QObject *objectContext) const = 0; |
84 virtual int indexOf(QDeclarativeItem *item, QObject *objectContext) const = 0; |
86 |
85 |
87 Q_SIGNALS: |
86 Q_SIGNALS: |
120 virtual QDeclarativeItem *item(int index, bool complete=true); |
119 virtual QDeclarativeItem *item(int index, bool complete=true); |
121 virtual ReleaseFlags release(QDeclarativeItem *item); |
120 virtual ReleaseFlags release(QDeclarativeItem *item); |
122 virtual bool completePending() const; |
121 virtual bool completePending() const; |
123 virtual void completeItem(); |
122 virtual void completeItem(); |
124 virtual QString stringValue(int index, const QString &role); |
123 virtual QString stringValue(int index, const QString &role); |
125 virtual QVariant evaluate(int index, const QString &expression, QObject *objectContext); |
|
126 |
124 |
127 virtual int indexOf(QDeclarativeItem *item, QObject *objectContext) const; |
125 virtual int indexOf(QDeclarativeItem *item, QObject *objectContext) const; |
128 |
126 |
129 QDeclarativeListProperty<QDeclarativeItem> children(); |
127 QDeclarativeListProperty<QDeclarativeItem> children(); |
130 |
128 |
175 QDeclarativeItem *item(int index, const QByteArray &, bool complete=true); |
173 QDeclarativeItem *item(int index, const QByteArray &, bool complete=true); |
176 ReleaseFlags release(QDeclarativeItem *item); |
174 ReleaseFlags release(QDeclarativeItem *item); |
177 bool completePending() const; |
175 bool completePending() const; |
178 void completeItem(); |
176 void completeItem(); |
179 virtual QString stringValue(int index, const QString &role); |
177 virtual QString stringValue(int index, const QString &role); |
180 QVariant evaluate(int index, const QString &expression, QObject *objectContext); |
|
181 |
178 |
182 int indexOf(QDeclarativeItem *item, QObject *objectContext) const; |
179 int indexOf(QDeclarativeItem *item, QObject *objectContext) const; |
183 |
180 |
184 QObject *parts(); |
181 QObject *parts(); |
185 |
182 |
195 void _q_itemsMoved(int from, int to, int count); |
192 void _q_itemsMoved(int from, int to, int count); |
196 void _q_rowsInserted(const QModelIndex &,int,int); |
193 void _q_rowsInserted(const QModelIndex &,int,int); |
197 void _q_rowsRemoved(const QModelIndex &,int,int); |
194 void _q_rowsRemoved(const QModelIndex &,int,int); |
198 void _q_rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int); |
195 void _q_rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int); |
199 void _q_dataChanged(const QModelIndex&,const QModelIndex&); |
196 void _q_dataChanged(const QModelIndex&,const QModelIndex&); |
|
197 void _q_layoutChanged(); |
200 void _q_modelReset(); |
198 void _q_modelReset(); |
201 void _q_createdPackage(int index, QDeclarativePackage *package); |
199 void _q_createdPackage(int index, QDeclarativePackage *package); |
202 void _q_destroyingPackage(QDeclarativePackage *package); |
200 void _q_destroyingPackage(QDeclarativePackage *package); |
203 |
201 |
204 private: |
202 private: |