ListModel Class
Public Functions
| | ListModel(ListLayout * layout, QQuickListModel * modelCache, int uid) |
| | ~ListModel() |
| int | append(v8::Handle<v8::Object> object, QV8Engine * eng) |
| int | appendElement() |
| void | clear() |
| void | destroy() |
| int | elementCount() const |
| const ListLayout::Role & | getExistingRole(int index) |
| ListModel * | getListProperty(int elementIndex, const ListLayout::Role & role) |
| const ListLayout::Role & | getOrCreateListRole(const QString & name) |
| ModelObject * | getOrCreateModelObject(QQuickListModel * model, int elementIndex) |
| QVariant | getProperty(int elementIndex, int roleIndex, const QQuickListModel * owner, QV8Engine * eng) |
| int | getUid() const |
| void | insert(int elementIndex, v8::Handle<v8::Object> object, QV8Engine * eng) |
| void | insertElement(int index) |
| void | move(int from, int to, int n) |
| void | remove(int index, int count) |
| int | roleCount() const |
| void | set(int elementIndex, v8::Handle<v8::Object> object, QList<int> * roles, QV8Engine * eng) |
| void | set(int elementIndex, v8::Handle<v8::Object> object, QV8Engine * eng) |
| int | setExistingProperty(int uid, const QString & key, v8::Handle<v8::Value> data, QV8Engine * eng) |
| int | setOrCreateProperty(int elementIndex, const QString & key, const QVariant & data) |
Static Public Members
| void | sync(ListModel * src, ListModel * target, QHash<int, ListModel *> * srcModelHash) |
Member Function Documentation
ListModel::ListModel(ListLayout * layout, QQuickListModel * modelCache, int uid)
ListModel::~ListModel()
int ListModel::append(v8::Handle<v8::Object> object, QV8Engine * eng)
int ListModel::appendElement()
void ListModel::clear()
void ListModel::destroy()
int ListModel::elementCount() const
const ListLayout::Role & ListModel::getExistingRole(int index)
ListModel * ListModel::getListProperty(int elementIndex, const ListLayout::Role & role)
const ListLayout::Role & ListModel::getOrCreateListRole(const QString & name)
ModelObject * ListModel::getOrCreateModelObject(QQuickListModel * model, int elementIndex)
QVariant ListModel::getProperty(int elementIndex, int roleIndex, const QQuickListModel * owner, QV8Engine * eng)
int ListModel::getUid() const
void ListModel::insert(int elementIndex, v8::Handle<v8::Object> object, QV8Engine * eng)
void ListModel::insertElement(int index)
void ListModel::move(int from, int to, int n)
void ListModel::remove(int index, int count)
int ListModel::roleCount() const
void ListModel::set(int elementIndex, v8::Handle<v8::Object> object, QList<int> * roles, QV8Engine * eng)
void ListModel::set(int elementIndex, v8::Handle<v8::Object> object, QV8Engine * eng)
int ListModel::setExistingProperty(int uid, const QString & key, v8::Handle<v8::Value> data, QV8Engine * eng)
int ListModel::setOrCreateProperty(int elementIndex, const QString & key, const QVariant & data)
void ListModel::sync(ListModel * src, ListModel * target, QHash<int, ListModel *> * srcModelHash) [static]
|