diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-03-02 02:07:40 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-03-02 02:07:40 (GMT) |
commit | 8da93faace82eb2bc86e76c0ad0a0c5c95e3b8bf (patch) | |
tree | 1559fc7e2fb0b983979d5e2d9abc53c16cede957 /src/declarative/qml/qdeclarativeworkerscript_p.h | |
parent | 5bfe57bbd1e6055e9b2d70d0b4c28052fefce430 (diff) | |
download | Qt-8da93faace82eb2bc86e76c0ad0a0c5c95e3b8bf.zip Qt-8da93faace82eb2bc86e76c0ad0a0c5c95e3b8bf.tar.gz Qt-8da93faace82eb2bc86e76c0ad0a0c5c95e3b8bf.tar.bz2 |
Add docs and tests for WorkerListModel.
Task-number: QT-2807
Diffstat (limited to 'src/declarative/qml/qdeclarativeworkerscript_p.h')
-rw-r--r-- | src/declarative/qml/qdeclarativeworkerscript_p.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativeworkerscript_p.h b/src/declarative/qml/qdeclarativeworkerscript_p.h index 8ebd2c1..01cc72a 100644 --- a/src/declarative/qml/qdeclarativeworkerscript_p.h +++ b/src/declarative/qml/qdeclarativeworkerscript_p.h @@ -61,6 +61,8 @@ #include <QtScript/qscriptvalue.h> #include <QtCore/qurl.h> +QT_BEGIN_HEADER + QT_BEGIN_NAMESPACE class QDeclarativeWorkerScript; @@ -84,7 +86,7 @@ private: QDeclarativeWorkerScriptEnginePrivate *d; }; -class QDeclarativeWorkerScript : public QObject, public QDeclarativeParserStatus +class Q_DECLARATIVE_EXPORT QDeclarativeWorkerScript : public QObject, public QDeclarativeParserStatus { Q_OBJECT Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged) @@ -115,7 +117,7 @@ private: }; class QDeclarativeWorkerListModelAgent; -class QDeclarativeWorkerListModel : public QListModelInterface +class Q_DECLARATIVE_EXPORT QDeclarativeWorkerListModel : public QListModelInterface { Q_OBJECT Q_PROPERTY(int count READ count NOTIFY countChanged) @@ -130,6 +132,7 @@ public: Q_INVOKABLE void insert(int index, const QScriptValue&); Q_INVOKABLE QScriptValue get(int index) const; Q_INVOKABLE void set(int index, const QScriptValue &); + Q_INVOKABLE void sync(); QDeclarativeWorkerListModelAgent *agent(); @@ -157,4 +160,6 @@ QT_END_NAMESPACE QML_DECLARE_TYPE(QDeclarativeWorkerScript); QML_DECLARE_TYPE(QDeclarativeWorkerListModel); +QT_END_HEADER + #endif // QDECLARATIVEWORKERSCRIPT_P_H |