Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#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 314 of file qqmllistmodel_p_p.h.
|
strong |
Enumerator | |
---|---|
WasJustInserted | |
IsCurrentlyUpdated |
Definition at line 356 of file qqmllistmodel_p_p.h.
ListModel::ListModel | ( | ListLayout * | layout, |
QQmlListModel * | modelCache ) |
Definition at line 475 of file qqmllistmodel.cpp.
Referenced by set().
|
inline |
Definition at line 319 of file qqmllistmodel_p_p.h.
int ListModel::append | ( | QV4::Object * | object | ) |
Definition at line 765 of file qqmllistmodel.cpp.
References appendElement(), set, and WasJustInserted.
Referenced by QQmlListModel::append().
int ListModel::appendElement | ( | ) |
Definition at line 490 of file qqmllistmodel.cpp.
References QPODVector< T, Increment >::count().
Referenced by append().
void ListModel::destroy | ( | ) |
Definition at line 479 of file qqmllistmodel.cpp.
References QPODVector< T, Increment >::count(), and remove().
Referenced by QQmlListModel::~QQmlListModel().
|
inline |
Definition at line 351 of file qqmllistmodel_p_p.h.
References QPODVector< T, Increment >::count().
Referenced by QQmlListModel::append(), and QQmlListModel::count().
|
inline |
Definition at line 336 of file qqmllistmodel_p_p.h.
References ListLayout::getExistingRole().
Referenced by QQmlListModel::roleNames(), QQmlListModel::setData(), ModelNodeMetaObject::updateValues(), and ModelNodeMetaObject::updateValues().
|
inline |
Definition at line 341 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.
Referenced by ListElement::sync().
|
inline |
Definition at line 346 of file qqmllistmodel_p_p.h.
References ListLayout::getRoleOrCreate(), and ListLayout::Role::List.
QObject * ListModel::getOrCreateModelObject | ( | QQmlListModel * | model, |
int | elementIndex ) |
Definition at line 318 of file qqmllistmodel.cpp.
References QQmlData::DoesNotOwnMemory, elements, QObjectPrivate::get(), model, Q_ASSERT, and void.
Referenced by QQmlListModel::get().
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().
Referenced by QQmlListModel::data().
void ListModel::insert | ( | int | elementIndex, |
QV4::Object * | object ) |
Definition at line 759 of file qqmllistmodel.cpp.
References insertElement(), set, and WasJustInserted.
Referenced by QQmlListModel::insert(), and QQmlListModel::set().
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.
References i.
Referenced by QQmlListModel::move().
Definition at line 743 of file qqmllistmodel.cpp.
References QPODVector< T, Increment >::append(), i, layout, QPODVector< T, Increment >::remove(), and void.
Referenced by destroy().
|
inline |
Definition at line 331 of file qqmllistmodel_p_p.h.
References ListLayout::roleCount().
Referenced by QQmlListModel::roleNames(), and ModelNodeMetaObject::updateValues().
void ListModel::set | ( | int | elementIndex, |
QV4::Object * | object, | ||
QVector< int > * | roles ) |
Definition at line 571 of file qqmllistmodel.cpp.
References ListModel(), arrayLength(), QV4::Value::as(), QV4::StaticValue::asDouble(), ListLayout::Role::Bool, QV4::StaticValue::booleanValue(), ListLayout::Role::DateTime, QV4::ObjectIterator::EnumerableOnly, ListLayout::Role::Function, ListLayout::getExistingRole(), ListLayout::getRoleOrCreate(), QV4::StaticValue::isBoolean(), QV4::StaticValue::isNullOrUndefined(), QV4::StaticValue::isNumber(), it, j, ListLayout::Role::List, mo, ListLayout::Role::Number, o, ListLayout::Role::QObject, QJSValuePrivate::setValue(), ListLayout::Role::String, QV4::ExecutionEngine::toVariant(), ListLayout::Role::type, url, ListLayout::Role::Url, ListLayout::Role::VariantMap, and wrapper().
Referenced by QQmlListModel::set().
void ListModel::set | ( | int | elementIndex, |
QV4::Object * | object, | ||
ListModel::SetElement | reason = SetElement::IsCurrentlyUpdated ) |
Definition at line 657 of file qqmllistmodel.cpp.
References arg, QV4::Value::as(), QV4::StaticValue::asDouble(), ListLayout::Role::Bool, QV4::StaticValue::booleanValue(), date, ListLayout::Role::DateTime, QV4::ObjectIterator::EnumerableOnly, QString::fromLatin1(), ListLayout::getExistingRole(), ListLayout::getRoleOrCreate(), QV4::StaticValue::isBoolean(), QV4::StaticValue::isNull(), QV4::StaticValue::isNullOrUndefined(), QV4::StaticValue::isNumber(), it, ListLayout::Role::Number, o, qmlWarning(), ListLayout::Role::QObject, QQmlError::setDescription(), ListLayout::Role::String, QV4::Value::stringValue(), QV4::ExecutionEngine::toVariant(), ListLayout::Role::type, url, ListLayout::Role::Url, ListLayout::Role::VariantMap, WasJustInserted, and wrapper().
int ListModel::setExistingProperty | ( | int | uid, |
const QString & | key, | ||
const QV4::Value & | data, | ||
QV4::ExecutionEngine * | eng ) |
Definition at line 793 of file qqmllistmodel.cpp.
References QPODVector< T, Increment >::count(), and ListLayout::getExistingRole().
Referenced by ModelNodeMetaObject::propertyWritten().
Definition at line 772 of file qqmllistmodel.cpp.
References cache, QPODVector< T, Increment >::count(), and ListLayout::getRoleOrCreate().
Referenced by QQmlListModel::setData(), and QQmlListModel::setProperty().
Definition at line 336 of file qqmllistmodel.cpp.
References QSet< T >::end(), QSet< T >::find(), i, it, j, mo, Q_ASSERT, ListElement::sync(), and ListLayout::sync().
Referenced by QQmlListModelWorkerAgent::event(), and ListElement::sync().
void ListModel::updateTranslations | ( | ) |
Definition at line 560 of file qqmllistmodel.cpp.
References cache, and QPODVector< T, Increment >::count().
|
friend |
Definition at line 411 of file qqmllistmodel_p_p.h.
|
friend |
Definition at line 413 of file qqmllistmodel_p_p.h.
|
friend |
Definition at line 412 of file qqmllistmodel_p_p.h.