diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-03-25 00:56:29 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-03-25 23:18:01 (GMT) |
commit | 75e793d0ff07fd094918cf00c4cd0e10dad6bfa8 (patch) | |
tree | 0abb271e905af4275928dcf185115815c0277fea /src/declarative/util/qdeclarativelistmodel.cpp | |
parent | 11b9190a182c5f3c1055c100145b02a3975509ed (diff) | |
download | Qt-75e793d0ff07fd094918cf00c4cd0e10dad6bfa8.zip Qt-75e793d0ff07fd094918cf00c4cd0e10dad6bfa8.tar.gz Qt-75e793d0ff07fd094918cf00c4cd0e10dad6bfa8.tar.bz2 |
Remove int parameter from ListModel countChanged() to be consistent
with other classes with countChanged() signals.
Diffstat (limited to 'src/declarative/util/qdeclarativelistmodel.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativelistmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/util/qdeclarativelistmodel.cpp b/src/declarative/util/qdeclarativelistmodel.cpp index 3e25234..3904458 100644 --- a/src/declarative/util/qdeclarativelistmodel.cpp +++ b/src/declarative/util/qdeclarativelistmodel.cpp @@ -365,7 +365,7 @@ void QDeclarativeListModel::clear() if (!m_isWorkerCopy) { emit itemsRemoved(0, cleared); - emit countChanged(0); + emit countChanged(); } } @@ -390,7 +390,7 @@ void QDeclarativeListModel::remove(int index) if (!m_isWorkerCopy) { emit itemsRemoved(index, 1); - emit countChanged(this->count()); + emit countChanged(); } } @@ -424,7 +424,7 @@ void QDeclarativeListModel::insert(int index, const QScriptValue& valuemap) bool ok = m_flat ? m_flat->insert(index, valuemap) : m_nested->insert(index, valuemap); if (ok && !m_isWorkerCopy) { emit itemsInserted(index, 1); - emit countChanged(this->count()); + emit countChanged(); } } |