diff options
| author | Peter Penz <[email protected]> | 2011-09-19 20:43:00 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-19 20:43:30 +0200 |
| commit | 6a75a6167160cacbdbc9210d3ea2a0564f071960 (patch) | |
| tree | 0318a18e713474c122a2cc96c1587e4dd23b89ba /src/kitemviews | |
| parent | 06f057d385f3924235697942ebc73aa1956515c2 (diff) | |
Fixed documentation of KItemModelBase::itemsMoved()
Diffstat (limited to 'src/kitemviews')
| -rw-r--r-- | src/kitemviews/kitemmodelbase.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/kitemviews/kitemmodelbase.h b/src/kitemviews/kitemmodelbase.h index adb48669d..88d393b1f 100644 --- a/src/kitemviews/kitemmodelbase.h +++ b/src/kitemviews/kitemmodelbase.h @@ -177,8 +177,13 @@ signals: /** * Is emitted if one ore more items get moved. * @param itemRanges Item-ranges that get moved to a new position. - * @param movedToIndexes New position of the ranges. - * It is assured that the itemRanges list has the same size as the movedToIndexes list. + * @param movedToIndexes New positions for each element of the item-ranges. + * + * For example if the model has 10 items and the items 0 and 1 get exchanged + * with the items 5 and 6 then the parameters look like this: + * - itemRanges: Contains two ranges. The first has the index 0 and a count of + * 2 and the second as the index 5 and a count of 2. + * - movedToIndexes: Contains the four values 5, 6, 0, 1 * * For the item-ranges it is assured that: * - They don't overlap |
