![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmllistmodel_p_p.h>
Public Types | |
| enum class | SetElement { WasJustInserted , IsCurrentlyUpdated } |
Static Public Member Functions | |
| static bool | sync (ListModel *src, ListModel *target) |
Friends | |
| class | ListElement |
| class | QQmlListModelWorkerAgent |
| class | QQmlListModelParser |
Definition at line 327 of file qqmllistmodel_p_p.h.
|
strong |
| Enumerator | |
|---|---|
| WasJustInserted | |
| IsCurrentlyUpdated | |
Definition at line 368 of file qqmllistmodel_p_p.h.
| ListModel::ListModel | ( | ListLayout * | layout, |
| QQmlListModel * | modelCache ) |
Definition at line 476 of file qqmllistmodel.cpp.
| int ListModel::append | ( | QV4::Object * | object | ) |
Definition at line 765 of file qqmllistmodel.cpp.
References appendElement().
| int ListModel::appendElement | ( | ) |
Definition at line 491 of file qqmllistmodel.cpp.
Referenced by append().
| void ListModel::destroy | ( | ) |
Definition at line 480 of file qqmllistmodel.cpp.
|
inline |
Definition at line 363 of file qqmllistmodel_p_p.h.
|
inline |
Definition at line 348 of file qqmllistmodel_p_p.h.
References ListLayout::getExistingRole().
Referenced by QV4::ModelObjectOwnPropertyKeyIterator::next().
|
inline |
Definition at line 353 of file qqmllistmodel_p_p.h.
References ListLayout::getExistingRole().
| ListModel * ListModel::getListProperty | ( | int | elementIndex, |
| const ListLayout::Role & | role ) |
Definition at line 555 of file qqmllistmodel.cpp.
|
inline |
Definition at line 358 of file qqmllistmodel_p_p.h.
References ListLayout::Role::List.
| QObject * ListModel::getOrCreateModelObject | ( | QQmlListModel * | model, |
| int | elementIndex ) |
Definition at line 319 of file qqmllistmodel.cpp.
| QVariant ListModel::getProperty | ( | int | elementIndex, |
| int | roleIndex, | ||
| const QQmlListModel * | owner, | ||
| QV4::ExecutionEngine * | eng ) |
Definition at line 546 of file qqmllistmodel.cpp.
References ListLayout::getExistingRole(), and ListLayout::roleCount().
| void ListModel::insert | ( | int | elementIndex, |
| QV4::Object * | object ) |
Definition at line 759 of file qqmllistmodel.cpp.
References insertElement().
| void ListModel::insertElement | ( | int | index | ) |
Definition at line 498 of file qqmllistmodel.cpp.
Referenced by insert().
| void ListModel::move | ( | int | from, |
| int | to, | ||
| int | n ) |
Definition at line 504 of file qqmllistmodel.cpp.
Definition at line 743 of file qqmllistmodel.cpp.
|
inline |
Definition at line 343 of file qqmllistmodel_p_p.h.
References ListLayout::roleCount().
Referenced by QV4::ModelObjectOwnPropertyKeyIterator::next().
| void ListModel::set | ( | int | elementIndex, |
| QV4::Object * | object, | ||
| QVector< int > * | roles ) |
Definition at line 572 of file qqmllistmodel.cpp.
References ListLayout::Role::type, ModelNodeMetaObject::updateValues(), and ListLayout::Role::VariantMap.
| void ListModel::set | ( | int | elementIndex, |
| QV4::Object * | object, | ||
| ListModel::SetElement | reason = SetElement::IsCurrentlyUpdated ) |
Definition at line 655 of file qqmllistmodel.cpp.
References ListLayout::Role::Bool, ListLayout::Role::DateTime, ListLayout::Role::Number, ListLayout::Role::type, ListLayout::Role::Url, and WasJustInserted.
| int ListModel::setExistingProperty | ( | int | uid, |
| const QString & | key, | ||
| const QV4::Value & | data, | ||
| QV4::ExecutionEngine * | eng ) |
Definition at line 793 of file qqmllistmodel.cpp.
References ListLayout::getExistingRole().
Definition at line 772 of file qqmllistmodel.cpp.
References ModelNodeMetaObject::updateValues().
Definition at line 337 of file qqmllistmodel.cpp.
References ListElement::ListElement(), ListLayout::sync(), and ModelNodeMetaObject::updateValues().
Referenced by QQmlListModelWorkerAgent::event(), and ListElement::sync().
| void ListModel::updateTranslations | ( | ) |
Definition at line 561 of file qqmllistmodel.cpp.
References ModelNodeMetaObject::updateValues().
|
friend |
Definition at line 436 of file qqmllistmodel_p_p.h.
|
friend |
Definition at line 438 of file qqmllistmodel_p_p.h.
|
friend |
Definition at line 437 of file qqmllistmodel_p_p.h.