4#include <private/qqmldmabstractitemmodeldata_p.h>
27 if (!m_cachedData.isEmpty())
29 }
else if (*m_type->
model) {
37 if (m_cachedData.size() > 1) {
40 }
else if (m_cachedData.size() == 1) {
44 }
else if (*m_type->
model) {
62 m_cachedData[0] =
value;
85 for (
int i = 0;
i < propertyCount; ++
i)
104 if (
o->d()->item->index == -1) {
125 if (
o->d()->item->index == -1) {
127 if (!
modelData->m_cachedData.isEmpty()) {
128 if (
modelData->m_cachedData.size() > 1) {
132 }
else if (
modelData->m_cachedData.size() == 1) {
181 ? m_cachedData.isEmpty() ?
QVariant() : m_cachedData[0]
195 qWarning() <<
"Cannot overwrite model object";
201 if (m_cachedData.isEmpty())
222QVariant QQmlDMAbstractItemModelData::value(
int role)
const
244 o->setPrototypeOf(proto);
246 return o.asReturnedValue();
iterator find(const Key &key)
Returns an iterator pointing to the item with the key in the hash.
iterator end() noexcept
Returns an \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the last ...
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
QDynamicMetaObjectData * metaObject
static QObjectPrivate * get(QObject *o)
QAbstractItemModel * aim()
int rowAt(int index) const
int columnAt(int index) const
QPersistentModelIndex rootIndex
QObject * contextObject() const
int metaCall(QMetaObject::Call call, int id, void **arguments)
static QV4::ReturnedValue get_modelData(const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *argv, int argc)
void setValue(const QString &role, const QVariant &value) override
static QV4::ReturnedValue get_property(const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *argv, int argc)
QV4::ReturnedValue get() override
static QV4::ReturnedValue set_property(const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *argv, int argc)
void setModelData(const QVariant &modelData)
bool resolveIndex(const QQmlAdaptorModel &model, int idx) override
QQmlDMAbstractItemModelData(const QQmlRefPointer< QQmlDelegateModelItemMetaType > &metaType, VDMAbstractItemModelDataType *dataType, int index, int row, int column)
static QV4::ReturnedValue set_modelData(const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *argv, int argc)
QV4::ExecutionEngine * v4
virtual void setModelIndex(int idx, int newRow, int newColumn, bool alwaysEmit=false)
QQmlRefPointer< QQmlContextData > contextData
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QByteArray toUtf8() const &
ReturnedValue value() const
void * data()
Returns a pointer to the contained object as a generic void* that can be written to.
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
QList< int > propertyRoles
QV4::PersistentValue prototype
QHash< QByteArray, int > roleNames
void initializeConstructor(QQmlAdaptorModelEngineData *const data)
QSet< QString >::iterator it
QList< QVariant > arguments
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLboolean GLboolean GLboolean b
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
#define QStringLiteral(str)
obj metaObject() -> className()
static constexpr ReturnedValue undefined()
QV4::ReturnedValue fromVariant(const QVariant &)
static QVariant toVariant(const QV4::Value &value, QMetaType typeHint, bool createJSValueForObjectsAndSymbols=true)
ReturnedValue throwTypeError()