diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-01-29 12:13:47 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-18 13:32:31 +0000 |
commit | 648a496e5e64ccdefe5383238fc7c4b84d0159a8 (patch) | |
tree | bc539f2305d5b5d461e6db26d67da5ac8b8d782b /src/gui/image/qpixmapcache.h | |
parent | ce7fb157f0b8f74025e6927e7b61b1d79de0581c (diff) |
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>
Diffstat (limited to 'src/gui/image/qpixmapcache.h')
0 files changed, 0 insertions, 0 deletions