QAbstractProxyModel: fix sibling() reimplementation
authorMark Brand <mabrand@mabrand.nl>
Thu, 8 Nov 2012 00:54:13 +0000 (01:54 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Nov 2012 17:56:46 +0000 (18:56 +0100)
commit999109866dbd350a29cc70815d0c772545c85746
treee8d9c7a8309d3206e556b4b972262cb0ebd29248
parent6e8f26a64572a02b4747b5b8c052114e9a1c485f
QAbstractProxyModel: 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 and
e5ac4fb9b236c782e3ed6f15044eb9956246931a
Change-Id: I25cd7baa4a93284ab14ede988ac524971870794e
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/itemmodels/qabstractproxymodel.cpp