Please sign in to comment.
Feature iterators: add a mechanism to check if it must be interrupted.
Add a setInterruptionChecker() method on iterators that provides an interface that can be called by iterators to check if they must return as soon as possible. This is set by QgsVectorLayerRenderer::render() to connect to QgsRenderContext::renderingStopped(). This is useful for some iterators, like the to be-committed QgsWFSFeatureIterator that can wait for a long time before returning. By regularly checking if it must be interrupted, this improves the GUI responsiveness a lot. This is an enhancement and existing iterators do not need to be modified.
- Loading branch information
Showing with 92 additions and 7 deletions.