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 322 of file qqmllistmodel_p_p.h.
|
strong |
Enumerator | |
---|---|
WasJustInserted | |
IsCurrentlyUpdated |
Definition at line 364 of file qqmllistmodel_p_p.h.
ListModel::ListModel | ( | ListLayout * | layout, |
QQmlListModel * | modelCache ) |
Definition at line 475 of file qqmllistmodel.cpp.
|
inline |
Definition at line 327 of file qqmllistmodel_p_p.h.
int ListModel::append | ( | QV4::Object * | object | ) |
Definition at line 765 of file qqmllistmodel.cpp.
References appendElement().
int ListModel::appendElement | ( | ) |
Definition at line 490 of file qqmllistmodel.cpp.
Referenced by append().
void ListModel::destroy | ( | ) |
Definition at line 479 of file qqmllistmodel.cpp.
|
inline |
Definition at line 359 of file qqmllistmodel_p_p.h.
|
inline |
Definition at line 344 of file qqmllistmodel_p_p.h.
References ListLayout::getExistingRole().
Referenced by QV4::ModelObjectOwnPropertyKeyIterator::next().
|
inline |
Definition at line 349 of file qqmllistmodel_p_p.h.
References ListLayout::getExistingRole().
ListModel * ListModel::getListProperty | ( | int | elementIndex, |
const ListLayout::Role & | role ) |
Definition at line 554 of file qqmllistmodel.cpp.
|
inline |
Definition at line 354 of file qqmllistmodel_p_p.h.
References ListLayout::Role::List.
QObject * ListModel::getOrCreateModelObject | ( | QQmlListModel * | model, |
int | elementIndex ) |
Definition at line 318 of file qqmllistmodel.cpp.
QVariant ListModel::getProperty | ( | int | elementIndex, |
int | roleIndex, | ||
const QQmlListModel * | owner, | ||
QV4::ExecutionEngine * | eng ) |
Definition at line 545 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 497 of file qqmllistmodel.cpp.
Referenced by insert().
void ListModel::move | ( | int | from, |
int | to, | ||
int | n ) |
Definition at line 503 of file qqmllistmodel.cpp.
Definition at line 743 of file qqmllistmodel.cpp.
|
inline |
Definition at line 339 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 571 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 657 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 336 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 560 of file qqmllistmodel.cpp.
References ModelNodeMetaObject::updateValues().
|
friend |
Definition at line 419 of file qqmllistmodel_p_p.h.
|
friend |
Definition at line 421 of file qqmllistmodel_p_p.h.
|
friend |
Definition at line 420 of file qqmllistmodel_p_p.h.