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>
Classes | |
class | Role |
Public Member Functions | |
ListLayout () | |
ListLayout (const ListLayout *other) | |
~ListLayout () | |
const Role * | getRoleOrCreate (const QString &key, const QVariant &data) |
const Role & | getRoleOrCreate (QV4::String *key, Role::DataType type) |
const Role & | getRoleOrCreate (const QString &key, Role::DataType type) |
const Role & | getExistingRole (int index) const |
const Role * | getExistingRole (const QString &key) const |
const Role * | getExistingRole (QV4::String *key) const |
int | roleCount () const |
Static Public Member Functions | |
static void | sync (ListLayout *src, ListLayout *target) |
Definition at line 156 of file qqmllistmodel_p_p.h.
|
inline |
Definition at line 159 of file qqmllistmodel_p_p.h.
Referenced by ListLayout::Role::Role().
ListLayout::ListLayout | ( | const ListLayout * | other | ) |
Definition at line 155 of file qqmllistmodel.cpp.
References i, ListLayout::Role::name, and other().
ListLayout::~ListLayout | ( | ) |
Definition at line 168 of file qqmllistmodel.cpp.
References qDeleteAll().
const ListLayout::Role * ListLayout::getExistingRole | ( | const QString & | key | ) | const |
Definition at line 245 of file qqmllistmodel.cpp.
References QStringHash< T >::Node::value.
|
inline |
Definition at line 201 of file qqmllistmodel_p_p.h.
Referenced by ListModel::getExistingRole(), ListModel::getExistingRole(), ListModel::getProperty(), ListModel::set(), ListModel::set(), ListModel::setExistingProperty(), and ListElement::sync().
const ListLayout::Role * ListLayout::getExistingRole | ( | QV4::String * | key | ) | const |
Definition at line 254 of file qqmllistmodel.cpp.
References QStringHash< T >::Node::value.
const ListLayout::Role * ListLayout::getRoleOrCreate | ( | const QString & | key, |
const QVariant & | data ) |
Definition at line 206 of file qqmllistmodel.cpp.
References ListLayout::Role::Bool, ListLayout::Role::DateTime, ListLayout::Role::Function, getRoleOrCreate(), ListLayout::Role::Invalid, QJSValue::isCallable(), QV4::CompiledData::Binding::isTranslationBinding(), ListLayout::Role::List, ListLayout::Role::Number, qmlWarning(), ListLayout::Role::String, ListLayout::Role::Url, QMetaType::User, and ListLayout::Role::VariantMap.
Referenced by ListModel::getOrCreateListRole(), getRoleOrCreate(), ListModel::set(), ListModel::set(), and ListModel::setOrCreateProperty().
const ListLayout::Role & ListLayout::getRoleOrCreate | ( | const QString & | key, |
Role::DataType | type ) |
Definition at line 69 of file qqmllistmodel.cpp.
References qmlWarning(), QStringLiteral, roleTypeName(), and QStringHash< T >::Node::value.
const ListLayout::Role & ListLayout::getRoleOrCreate | ( | QV4::String * | key, |
Role::DataType | type ) |
Definition at line 82 of file qqmllistmodel.cpp.
References qmlWarning(), QStringLiteral, roleTypeName(), and QStringHash< T >::Node::value.
|
inline |
Definition at line 205 of file qqmllistmodel_p_p.h.
Referenced by ListModel::getProperty(), ListModel::roleCount(), QQmlListModel::setDynamicRoles(), and ListElement::sync().
|
static |
Definition at line 173 of file qqmllistmodel.cpp.
References i, and ListLayout::Role::name.
Referenced by ListModel::sync().