diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-05-20 06:42:06 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-05-21 00:11:34 (GMT) |
commit | 30b490476bad5d486332093fc672856a8dd6a195 (patch) | |
tree | d33650d24441fd2dc4d91076fca6821aedcb9d83 /src/declarative/util/qdeclarativexmllistmodel_p.h | |
parent | 0a2ef85bc7c560f38f5ba591968ce49969893a1c (diff) | |
download | Qt-30b490476bad5d486332093fc672856a8dd6a195.zip Qt-30b490476bad5d486332093fc672856a8dd6a195.tar.gz Qt-30b490476bad5d486332093fc672856a8dd6a195.tar.bz2 |
Add XmlListModel::get()
Task-number: QTBUG-10761
Diffstat (limited to 'src/declarative/util/qdeclarativexmllistmodel_p.h')
-rw-r--r-- | src/declarative/util/qdeclarativexmllistmodel_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativexmllistmodel_p.h b/src/declarative/util/qdeclarativexmllistmodel_p.h index 7101c57..4460f24 100644 --- a/src/declarative/util/qdeclarativexmllistmodel_p.h +++ b/src/declarative/util/qdeclarativexmllistmodel_p.h @@ -47,6 +47,7 @@ #include <QtCore/qurl.h> #include <QtCore/qstringlist.h> +#include <QtScript/qscriptvalue.h> #include <private/qlistmodelinterface_p.h> @@ -109,6 +110,8 @@ public: QString namespaceDeclarations() const; void setNamespaceDeclarations(const QString&); + Q_INVOKABLE QScriptValue get(int index) const; + enum Status { Null, Ready, Loading, Error }; Status status() const; qreal progress() const; |