QIdentityProxyModel: fix sibling() reimplementation
authorMark Brand <mabrand@mabrand.nl>
Fri, 2 Nov 2012 20:49:44 +0000 (21:49 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 21:42:36 +0000 (22:42 +0100)
commite5ac4fb9b236c782e3ed6f15044eb9956246931a
treeb9b0493cb4409ec73eea9e5e68c054521799052c
parent698ae963e4cbb6c5d9239d0a10efc0cb910fa310
QIdentityProxyModel: fix sibling() reimplementation

The previously missing mapFromSource() sets the proxy model in the
returned index. Otherwise, the returned index refers incorrectly to
the source model.

Follow-up to 9dfba89c28bbff3316cb7aed6c07f90c0f2d5a22.

Change-Id: I78ab9183820909b646a7333f28aa5ec7266fa675
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/itemmodels/qidentityproxymodel.cpp