-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QItemSelectionModel: cache calls to QPersistentModelIndex functions
Try to avoid the expensive calls to QPMI functions (they are not inlined) by caching its results. This is done through a helper class which does a lazy initialization of the members. Fixes: QTBUG-113137 Change-Id: I8e4d79e393fbc219f1ff8bb2207ed479521c0847 Reviewed-by: David Faure <david.faure@kdab.com>
- Loading branch information
Showing
1 changed file
with
78 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters