diff options
-rw-r--r-- | doc/src/declarative/qtbinding.qdoc | 2 | ||||
-rw-r--r-- | src/declarative/util/qmlpropertymap.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/doc/src/declarative/qtbinding.qdoc b/doc/src/declarative/qtbinding.qdoc index 86acf9f..18685ac 100644 --- a/doc/src/declarative/qtbinding.qdoc +++ b/doc/src/declarative/qtbinding.qdoc @@ -222,7 +222,7 @@ binding that does not have a NOTIFY signal will cause QML to issue a warning at \section2 Dynamic Structured Data If an application is too dynamic to structure data as compile-time QObject types, dynamically -structured data can be constructed at runtime using the QBindableMap class. +structured data can be constructed at runtime using the QmlPropertyMap class. \section1 Network Components diff --git a/src/declarative/util/qmlpropertymap.cpp b/src/declarative/util/qmlpropertymap.cpp index e23eebf..0a92a8b 100644 --- a/src/declarative/util/qmlpropertymap.cpp +++ b/src/declarative/util/qmlpropertymap.cpp @@ -45,7 +45,7 @@ QT_BEGIN_NAMESPACE -//QBindableMapMetaObject lets us listen for changes coming from QML +//QmlPropertyMapMetaObject lets us listen for changes coming from QML //so we can emit the changed signal. class QmlPropertyMapMetaObject : public QmlOpenMetaObject { @@ -87,17 +87,17 @@ void QmlPropertyMapMetaObject::propertyWrite(int index) } /*! - \class QBindableMap - \brief The QBindableMap class allows you to set key-value pairs that can be used in bindings. + \class QmlPropertyMap + \brief The QmlPropertyMap class allows you to set key-value pairs that can be used in bindings. - QBindableMap provides a convenient way to expose domain data to the UI layer. + QmlPropertyMap provides a convenient way to expose domain data to the UI layer. The following example shows how you might declare data in C++ and then access it in QML. Setup in C++: \code //create our data - QBindableMap ownerData; + QmlPropertyMap ownerData; ownerData.setValue("name", QVariant(QString("John Smith"))); ownerData.setValue("phone", QVariant(QString("555-5555"))); @@ -190,7 +190,7 @@ QStringList QmlPropertyMap::keys() const } /*! - \fn void QBindableMap::changed(const QString &key) + \fn void QmlPropertyMap::changed(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. */ |