6#include <private/qmetaobjectbuilder_p.h>
7#include <private/qqmlopenmetaobject_p.h>
166 if (
d->validKeyName(
key))
182 d->mo->setAutoCreatesProperties(
false);
183 d->mo->setCached(
true);
195 return d->mo->value(
key.toUtf8());
207 if (
d->validKeyName(
key)) {
210 qWarning() <<
"Creating property with name"
212 <<
"is not permitted, conflicts with internal symbols.";
233 if (!
d->validKeyName(
key)) {
234 qWarning() <<
"Creating property with name"
236 <<
"is not permitted, conflicts with internal symbols.";
242 d->mo->setValues(checkedValues);
266 return d->keys.size();
277 return d->keys.size();
289 return d->keys.isEmpty();
300 return d->keys.contains(
key);
318 if (!
d->keys.contains(
key))
321 return d->mo->valueRef(utf8key);
377#include "moc_qqmlpropertymap.cpp"
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
QVariant updateValue(const QString &key, const QVariant &input)
void emitChanged(const QString &key, const QVariant &value)
const QString & propertyName(int index) const
QQmlPropertyMapMetaObject * mo
bool validKeyName(const QString &name)
The QQmlPropertyMap class allows you to set key-value pairs that can be used in QML bindings.
virtual QVariant updateValue(const QString &key, const QVariant &input)
Returns the new value to be stored for the key key.
QVariant & operator[](const QString &key)
Returns the value associated with the key key as a modifiable reference.
Q_INVOKABLE QStringList keys() const
Returns the list of keys.
void clear(const QString &key)
Clears the value (if any) associated with key.
int size() const
Returns the number of keys in the map.
bool contains(const QString &key) const
Returns true if the map contains key.
void insert(const QString &key, const QVariant &value)
Sets the value associated with key to value.
bool isEmpty() const
Returns true if the map contains no keys; otherwise returns false.
QVariant value(const QString &key) const
Returns the value associated with key.
~QQmlPropertyMap() override
Destroys the bindable map.
int count() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
QQmlPropertyMap(QObject *parent=nullptr)
Constructs a bindable map with parent object parent.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QSet< QString >::iterator it
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLsizei GLsizei GLint * values
[15]
GLboolean GLboolean GLboolean b
GLdouble GLdouble GLdouble GLdouble q
GLenum GLenum GLenum input
QLatin1StringView QLatin1String
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent