18#include <private/qtqmlmodelsglobal_p.h>
19#include <private/qqmlcustomparser_p.h>
21#include <QtCore/QObject>
22#include <QtCore/QStringList>
23#include <QtCore/QHash>
24#include <QtCore/QList>
25#include <QtCore/QVariant>
26#include <QtCore/qabstractitemmodel.h>
28#include <private/qv4engine_p.h>
29#include <private/qpodvector_p.h>
48 Q_PROPERTY(
bool dynamicRoles READ dynamicRoles WRITE setDynamicRoles FINAL)
80 void setDynamicRoles(
bool enableDynamicRoles);
88 friend class ModelObject;
103 inline bool canMove(
int from,
int to,
int n)
const {
return !(from+
n >
count() || to+
n >
count() || from < 0 || to < 0 ||
n < 0); }
115 std::unique_ptr<QPropertyNotifier> translationChangeHandler;
125 int targetIndex = -1;
133 void emitItemsAboutToBeInserted(
int index,
int count);
134 void emitItemsInserted();
136 void removeElements(
int index,
int removeCount);
138 void updateTranslations();
171 static bool definesEmptyList(
const QString &);
virtual Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const =0
Returns the number of rows under the given parent.
virtual Q_INVOKABLE bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Sets the role data for the item at index to value.
virtual QHash< int, QByteArray > roleNames() const
The QJSValue class acts as a container for Qt/JavaScript data types.
bool setProperty(const char *name, const QVariant &value)
Sets the value of the object's name property to value.
The QQmlCustomParser class allows you to add new arbitrary types to QML.
void verifyBindings(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QList< const QV4::CompiledData::Binding * > &bindings) override
void applyBindings(QObject *obj, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QList< const QV4::CompiledData::Binding * > &bindings) override
QQmlListModelWorkerAgent * agent()
bool dynamicRoles() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
list append(new Employee("Blackpool", "Stephen"))
cache insert(employee->id(), employee)
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
static QDBusError::ErrorType get(const char *name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLenum GLsizei count
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
#define QML_DECLARE_TYPE(TYPE)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
QQmlCustomParser * qmlCreateCustomParser< QQmlListModel >()
#define QT_REQUIRE_CONFIG(feature)
QSqlQueryModel * model
[16]
QFuture< QSet< QChar > > set
[10]
settings remove("monkey")
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent