diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2014-12-30 16:26:18 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2015-01-08 12:34:20 +0100 |
commit | 1a86ccd5272e264a1e8ebce9afcb32c246f90aac (patch) | |
tree | 0ef89d76e2cb51b5376ecac2818c80f581996242 /src/qml/types/qqmllistmodel_p.h | |
parent | b5c6b78ee4ff971c3224f9717496c9233e1e2d1d (diff) |
Reduce v8engine dependency for the list model
Change-Id: Ib9e39a886c918a8f6ee1477465895739f90e1a0a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qqmllistmodel_p.h')
-rw-r--r-- | src/qml/types/qqmllistmodel_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/types/qqmllistmodel_p.h b/src/qml/types/qqmllistmodel_p.h index debe7ee98d..4dfd2028fe 100644 --- a/src/qml/types/qqmllistmodel_p.h +++ b/src/qml/types/qqmllistmodel_p.h @@ -44,7 +44,7 @@ #include <QtCore/QVariant> #include <QtCore/qabstractitemmodel.h> -#include <private/qv8engine_p.h> +#include <private/qv4engine_p.h> #include <private/qpodvector_p.h> QT_BEGIN_NAMESPACE @@ -102,14 +102,14 @@ private: // Constructs a flat list model for a worker agent QQmlListModel(QQmlListModel *orig, QQmlListModelWorkerAgent *agent); - QQmlListModel(const QQmlListModel *owner, ListModel *data, QV8Engine *eng, QObject *parent=0); + QQmlListModel(const QQmlListModel *owner, ListModel *data, QV4::ExecutionEngine *engine, QObject *parent=0); - QV8Engine *engine() const; + QV4::ExecutionEngine *engine() const; inline bool canMove(int from, int to, int n) const { return !(from+n > count() || to+n > count() || from < 0 || to < 0 || n < 0); } QQmlListModelWorkerAgent *m_agent; - mutable QV8Engine *m_engine; + mutable QV4::ExecutionEngine *m_engine; bool m_mainThread; bool m_primary; |