42 #ifndef QDECLARATIVELISTMODEL_P_P_H 43 #define QDECLARATIVELISTMODEL_P_P_H 56 #include "private/qdeclarativelistmodel_p.h" 57 #include "private/qdeclarativeengine_p.h" 58 #include "private/qdeclarativeopenmetaobject_p.h" 61 #include <private/qscriptdeclarativeclass_p.h> 89 void remove(
int index);
94 void move(
int from,
int to,
int count);
130 QScriptClass::QueryFlags queryProperty(
Object *,
const Identifier &, QScriptClass::QueryFlags flags);
162 nodeData->addData(
this);
167 nodeData->removeData(
this);
189 void remove(
int index);
194 void move(
int from,
int to,
int count);
197 void checkRoles()
const;
217 void setNodeUpdatesEnabled(
bool enable);
234 void propertyWritten(
int index);
258 bool setObjectValue(
const QScriptValue& valuemap,
bool writeToCache =
true);
262 void updateListIndexes();
280 #endif // QDECLARATIVELISTMODEL_P_P_H The QVariant class acts like a union for the most common Qt data types.
void setProperty(int index, const QString &property, const QVariant &value, QList< int > *roles)
void move(int from, int to, int count)
#define QT_END_NAMESPACE
This macro expands to.
void moveNodes(int from, int to, int n)
QHash< QString, ModelNode * > properties
ModelNodeMetaObject * m_meta
The QByteArray class provides an array of bytes.
QVariant data(int index, int role) const
friend class FlatListScriptClass
bool insert(int index, const QScriptValue &)
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
QSet< FlatNodeObjectData * > objects
The QObject class is the base class of all Qt objects.
The QScriptDeclarativeClass::Value class acts as a container for JavaScript data types.
void insertedNode(int index)
QDeclarativeListModel * m_listModel
FlatListScriptClass * m_scriptClass
The QScriptEngine class provides an environment for evaluating Qt Script code.
QList< FlatNodeData * > m_nodeData
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool compare(const QVariant::Private *a, const QVariant::Private *b)
Compares a to b.
QDeclarativeListModel * m_listModel
The QStringList class provides a list of strings.
QList< QHash< int, QVariant > > m_values
FlatNodeObjectData(FlatNodeData *data)
void removedNode(int index)
QHash< int, QString > m_roles
NestedListModel * m_model
QHash< QString, int > m_strings
FlatListModel(QDeclarativeListModel *base)
QDeclarativeListModel * modelCache
QDeclarativeListModelWorkerAgent * m_parentAgent
QList< int > roles() const
static QString dump(const QByteArray &)
QScriptEngine * m_scriptEngine
QString toString(int role) const
ModelObject * objectCache
NestedListModel * m_model
bool addValue(const QScriptValue &value, QHash< int, QVariant > *row, QList< int > *roles)
The QScriptValue class acts as a container for the Qt Script data types.