From c0b64da3ab27f0bc3a23aa3af9ba63d52145ee97 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Fri, 22 Jan 2010 12:33:28 +1000 Subject: Clarify QmlPropertyMap::valueChanged docs. --- src/declarative/util/qmlpropertymap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/declarative/util/qmlpropertymap.cpp b/src/declarative/util/qmlpropertymap.cpp index d0a0428..226f82e 100644 --- a/src/declarative/util/qmlpropertymap.cpp +++ b/src/declarative/util/qmlpropertymap.cpp @@ -118,7 +118,7 @@ void QmlPropertyMapMetaObject::propertyWrite(int index) key will be updated as well. To detect value changes made in the UI layer you can connect to the valueChanged() signal. - However, note that valueChanged() is \b NOT emitted when changes are made by calling insert() + However, note that valueChanged() is \bold NOT emitted when changes are made by calling insert() or clear() - it is only emitted when a value is updated from QML. \note It is not possible to remove keys from the map; once a key has been added, you can only @@ -270,6 +270,9 @@ const QVariant QmlPropertyMap::operator[](const QString &key) const \fn void QmlPropertyMap::valueChanged(const QString &key) This signal is emitted whenever one of the values in the map is changed. \a key is the key corresponding to the value that was changed. + + \note valueChanged() is \bold NOT emitted when changes are made by calling insert() + or clear() - it is only emitted when a value is updated from QML. */ QT_END_NAMESPACE -- cgit v0.12