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>.
Loading...
Searching...
No Matches
ListLayout Class Reference

#include <qqmllistmodel_p_p.h>

+ Collaboration diagram for ListLayout:

Classes

class  Role
 

Public Member Functions

 ListLayout ()
 
 ListLayout (const ListLayout *other)
 
 ~ListLayout ()
 
const RolegetRoleOrCreate (const QString &key, const QVariant &data)
 
const RolegetRoleOrCreate (QV4::String *key, Role::DataType type)
 
const RolegetRoleOrCreate (const QString &key, Role::DataType type)
 
const RolegetExistingRole (int index) const
 
const RolegetExistingRole (const QString &key) const
 
const RolegetExistingRole (QV4::String *key) const
 
int roleCount () const
 

Static Public Member Functions

static void sync (ListLayout *src, ListLayout *target)
 

Detailed Description

Definition at line 156 of file qqmllistmodel_p_p.h.

Constructor & Destructor Documentation

◆ ListLayout() [1/2]

ListLayout::ListLayout ( )
inline

Definition at line 159 of file qqmllistmodel_p_p.h.

Referenced by ListLayout::Role::Role().

+ Here is the caller graph for this function:

◆ ListLayout() [2/2]

ListLayout::ListLayout ( const ListLayout * other)

Definition at line 155 of file qqmllistmodel.cpp.

References i, ListLayout::Role::name, and other().

+ Here is the call graph for this function:

◆ ~ListLayout()

ListLayout::~ListLayout ( )

Definition at line 168 of file qqmllistmodel.cpp.

References qDeleteAll().

+ Here is the call graph for this function:

Member Function Documentation

◆ getExistingRole() [1/3]

const ListLayout::Role * ListLayout::getExistingRole ( const QString & key) const

Definition at line 245 of file qqmllistmodel.cpp.

References QStringHash< T >::Node::value.

◆ getExistingRole() [2/3]

const Role & ListLayout::getExistingRole ( int index) const
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().

+ Here is the caller graph for this function:

◆ getExistingRole() [3/3]

const ListLayout::Role * ListLayout::getExistingRole ( QV4::String * key) const

Definition at line 254 of file qqmllistmodel.cpp.

References QStringHash< T >::Node::value.

◆ getRoleOrCreate() [1/3]

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRoleOrCreate() [2/3]

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.

+ Here is the call graph for this function:

◆ getRoleOrCreate() [3/3]

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.

+ Here is the call graph for this function:

◆ roleCount()

int ListLayout::roleCount ( ) const
inline

Definition at line 205 of file qqmllistmodel_p_p.h.

Referenced by ListModel::getProperty(), ListModel::roleCount(), QQmlListModel::setDynamicRoles(), and ListElement::sync().

+ Here is the caller graph for this function:

◆ sync()

void ListLayout::sync ( ListLayout * src,
ListLayout * target )
static

Definition at line 173 of file qqmllistmodel.cpp.

References i, and ListLayout::Role::name.

Referenced by ListModel::sync().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: