Add optional count parameter to ListModel.remove
authorGlenn Watson <glenn.watson@nokia.com>
Tue, 15 Nov 2011 01:32:56 +0000 (11:32 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 Nov 2011 03:39:26 +0000 (04:39 +0100)
commiteef97750eb1c5b33ed8e0e8c0d1bbf6385239701
treec98699d91734ef36af2eb78089af6a5475b56b72
parentc9cd3b690386661fa19904ccf8958bf83ef0ad24
Add optional count parameter to ListModel.remove

When calling remove on ListModel, it's now possible to supply
a second parameter giving the number of items to remove. If the
count parameter is omitted, it defaults to one, which maintains
the previous behaviour.

Task-number: QTBUG-22601
Change-Id: I0fb5c394a2b312095ce6e99e379d0f789d3ab4e6
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/util/qdeclarativelistmodel.cpp
src/declarative/util/qdeclarativelistmodel_p.h
src/declarative/util/qdeclarativelistmodel_p_p.h
src/declarative/util/qdeclarativelistmodelworkeragent.cpp
src/declarative/util/qdeclarativelistmodelworkeragent_p.h
tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp