QFileSystemModel: avoid sibling() calls
...by allowing to pass the column to the Private::index() overloads. Because Private::index() always returns an index in column 0, callers that needed a different column used QModelIndex::sibling() to adjust the column of the returned index. But that calls QAIM::sibling(), which calls both QFSM::index() and ::parent(). Simply allowing to pass the column number instead of hard-coding 0 avoids that heavy detour. Change-Id: I8895b3d102d576ba291333cf61075b7263f96b9d Reviewed-by:Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by:
David Faure <david.faure@kdab.com>
Showing
Please register or sign in to comment