summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmlpropertymap.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-21 04:57:07 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-21 04:57:50 (GMT)
commit1208d2800d4810a472262d8e04f0cf3a59a3efdb (patch)
tree8f599585e1d77872fae50e4c3d1bc1da0a395070 /src/declarative/util/qmlpropertymap.h
parent2b7c33da538e1fd596c679a089c1949cc8651103 (diff)
downloadQt-1208d2800d4810a472262d8e04f0cf3a59a3efdb.zip
Qt-1208d2800d4810a472262d8e04f0cf3a59a3efdb.tar.gz
Qt-1208d2800d4810a472262d8e04f0cf3a59a3efdb.tar.bz2
Give QmlPropertyMap a more complete API.
Diffstat (limited to 'src/declarative/util/qmlpropertymap.h')
-rw-r--r--src/declarative/util/qmlpropertymap.h14
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)