summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qmllistmodel.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-01-20 07:09:52 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-01-20 07:09:52 (GMT)
commitdb0cfede616fbed94333615d1f6c1fabad46d088 (patch)
tree5a220aaee185584921124163d8f977f61de13e5d /src/declarative/util/qmllistmodel.cpp
parentbfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872 (diff)
downloadQt-db0cfede616fbed94333615d1f6c1fabad46d088.zip
Qt-db0cfede616fbed94333615d1f6c1fabad46d088.tar.gz
Qt-db0cfede616fbed94333615d1f6c1fabad46d088.tar.bz2
Rename ListModel::set() to ListModel::setProperty()
As QML doesn't support slot overloading, the two ListModel::set() calls must be separated.
Diffstat (limited to 'src/declarative/util/qmllistmodel.cpp')
-rw-r--r--src/declarative/util/qmllistmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/util/qmllistmodel.cpp b/src/declarative/util/qmllistmodel.cpp
index fee9b6d..e975a5f 100644
--- a/src/declarative/util/qmllistmodel.cpp
+++ b/src/declarative/util/qmllistmodel.cpp
@@ -705,7 +705,7 @@ void QmlListModel::set(int index, const QScriptValue& valuemap)
}
/*!
- \qmlmethod ListModel::set(int index, string property, variant value)
+ \qmlmethod ListModel::setProperty(int index, string property, variant value)
Changes the \a property of the item at \a index in the list model to \a value.
@@ -717,7 +717,7 @@ void QmlListModel::set(int index, const QScriptValue& valuemap)
\sa append()
*/
-void QmlListModel::set(int index, const QString& property, const QVariant& value)
+void QmlListModel::setProperty(int index, const QString& property, const QVariant& value)
{
if ( !_root || index >= _root->values.count()) {
qmlInfo(this) << tr("set: index %1 out of range").arg(index);