Qt 4.8
|
#include <qdeclarativelistmodel_p_p.h>
Public Functions | |
void | checkRoles () const |
void | clear () |
int | count () const |
QHash< int, QVariant > | data (int index, const QList< int > &roles, bool *hasNested=0) const |
QVariant | data (int index, int role) const |
QScriptValue | get (int index) const |
bool | insert (int index, const QScriptValue &) |
void | move (int from, int to, int count) |
NestedListModel (QDeclarativeListModel *base) | |
void | remove (int index) |
QList< int > | roles () const |
void | set (int index, const QScriptValue &, QList< int > *roles) |
void | setProperty (int index, const QString &property, const QVariant &value, QList< int > *roles) |
QString | toString (int role) const |
QVariant | valueForNode (ModelNode *, bool *hasNested=0) const |
~NestedListModel () | |
Public Variables | |
ModelNode * | _root |
QDeclarativeListModel * | m_listModel |
bool | m_ownsRoot |
Properties | |
bool | _rolesOk |
QStringList | roleStrings |
Friends | |
struct | ModelNode |
Definition at line 175 of file qdeclarativelistmodel_p_p.h.
NestedListModel::NestedListModel | ( | QDeclarativeListModel * | base | ) |
Definition at line 1239 of file qdeclarativelistmodel.cpp.
NestedListModel::~NestedListModel | ( | ) |
Definition at line 1244 of file qdeclarativelistmodel.cpp.
void NestedListModel::checkRoles | ( | ) | const |
Definition at line 1437 of file qdeclarativelistmodel.cpp.
Referenced by ModelNode::changedProperty(), data(), roles(), and toString().
void NestedListModel::clear | ( | ) |
Definition at line 1342 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::clear().
int NestedListModel::count | ( | ) | const |
Definition at line 1336 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::data(), QDeclarativeListModel::flatten(), get(), set(), and setProperty().
QHash< int, QVariant > NestedListModel::data | ( | int | index, |
const QList< int > & | roles, | ||
bool * | hasNested = 0 |
||
) | const |
Definition at line 1290 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::data(), and QDeclarativeListModel::flatten().
QVariant NestedListModel::data | ( | int | index, |
int | role | ||
) | const |
Definition at line 1313 of file qdeclarativelistmodel.cpp.
QScriptValue NestedListModel::get | ( | int | index | ) | const |
Definition at line 1379 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::get().
bool NestedListModel::insert | ( | int | index, |
const QScriptValue & | valuemap | ||
) |
Definition at line 1358 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::insert().
void NestedListModel::move | ( | int | from, |
int | to, | ||
int | count | ||
) |
Definition at line 1372 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::move().
void NestedListModel::remove | ( | int | index | ) |
Definition at line 1348 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::remove().
QList< int > NestedListModel::roles | ( | ) | const |
Definition at line 1455 of file qdeclarativelistmodel.cpp.
Referenced by ModelNode::changedProperty(), QDeclarativeListModel::flatten(), and QDeclarativeListModel::roles().
void NestedListModel::set | ( | int | index, |
const QScriptValue & | valuemap, | ||
QList< int > * | roles | ||
) |
Definition at line 1399 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::set().
void NestedListModel::setProperty | ( | int | index, |
const QString & | property, | ||
const QVariant & | value, | ||
QList< int > * | roles | ||
) |
Definition at line 1420 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::setProperty().
QString NestedListModel::toString | ( | int | role | ) | const |
Definition at line 1464 of file qdeclarativelistmodel.cpp.
Referenced by QDeclarativeListModel::flatten(), and QDeclarativeListModel::toString().
Definition at line 1250 of file qdeclarativelistmodel.cpp.
Referenced by data(), and ModelNode::object().
|
friend |
Definition at line 204 of file qdeclarativelistmodel_p_p.h.
Referenced by insert().
|
mutableprivate |
Definition at line 206 of file qdeclarativelistmodel_p_p.h.
Referenced by checkRoles().
ModelNode* NestedListModel::_root |
Definition at line 199 of file qdeclarativelistmodel_p_p.h.
Referenced by checkRoles(), clear(), count(), data(), get(), insert(), move(), remove(), set(), QDeclarativeListModelParser::setCustomData(), setProperty(), ModelNode::~ModelNode(), and ~NestedListModel().
QDeclarativeListModel* NestedListModel::m_listModel |
Definition at line 201 of file qdeclarativelistmodel_p_p.h.
Referenced by ModelNode::changedProperty(), get(), ModelNode::model(), and ModelNode::object().
bool NestedListModel::m_ownsRoot |
Definition at line 200 of file qdeclarativelistmodel_p_p.h.
Referenced by insert(), QDeclarativeListModelParser::setCustomData(), and ~NestedListModel().
|
mutableprivate |
Definition at line 205 of file qdeclarativelistmodel_p_p.h.
Referenced by ModelNode::changedProperty(), checkRoles(), data(), roles(), set(), setProperty(), and toString().