diff options
Diffstat (limited to 'src/declarative/util/qmlpropertymap.h')
-rw-r--r-- | src/declarative/util/qmlpropertymap.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/declarative/util/qmlpropertymap.h b/src/declarative/util/qmlpropertymap.h index 295f4b7..24b4395 100644 --- a/src/declarative/util/qmlpropertymap.h +++ b/src/declarative/util/qmlpropertymap.h @@ -63,13 +63,21 @@ public: virtual ~QmlPropertyMap(); QVariant value(const QString &key) const; - void setValue(const QString &key, const QVariant &value); - void clearValue(const QString &key); + void insert(const QString &key, const QVariant &value); + void clear(const QString &key); Q_INVOKABLE QStringList keys() const; + int count() const; + int size() const; + bool isEmpty() const; + bool contains(const QString &key) const; + + QVariant &operator[](const QString &key); + const QVariant operator[](const QString &key) const; + Q_SIGNALS: - void changed(const QString &key); + void valueChanged(const QString &key); private: Q_DECLARE_PRIVATE(QmlPropertyMap) |