Skip to content
Permalink
Browse files

Map renderer sends signal on layers finished but before labeling

  • Loading branch information
m-kuhn committed Sep 7, 2016
1 parent 45373d0 commit 02ae886d69ebe982db1a1dce27f42532ffc002f6
Showing with 17 additions and 0 deletions.
  1. +8 −0 python/core/qgsmaprendererjob.sip
  2. +8 −0 src/core/qgsmaprendererjob.h
  3. +1 −0 src/core/qgsmaprendererparalleljob.cpp
@@ -98,6 +98,14 @@ class QgsMapRendererJob : QObject
const QgsMapSettings& mapSettings() const;

signals:
/**
* Emitted when the layers are rendered.
* Rendering labels is not yet done. If the fully rendered layer including labels is reuquired use

This comment has been minimized.

Copy link
@DelazJ

DelazJ Sep 7, 2016

Contributor

@m-kuhn typo on required

This comment has been minimized.

Copy link
@m-kuhn

m-kuhn Sep 7, 2016

Author Member

Thanks, fixed

* finished() instead.
*
* @note Added in QGIS 3.0
*/
void renderingLayersFinished();

//! emitted when asynchronous rendering is finished (or canceled).
void finished();
@@ -140,6 +140,14 @@ class CORE_EXPORT QgsMapRendererJob : public QObject
const QgsMapSettings& mapSettings() const;

signals:
/**
* Emitted when the layers are rendered.
* Rendering labels is not yet done. If the fully rendered layer including labels is reuquired use
* finished() instead.
*
* @note Added in QGIS 3.0
*/
void renderingLayersFinished();

//! emitted when asynchronous rendering is finished (or canceled).
void finished();
@@ -196,6 +196,7 @@ void QgsMapRendererParallelJob::renderLayersFinished()
// now start rendering of labeling!
mLabelingFuture = QtConcurrent::run( renderLabelsStatic, this );
mLabelingFutureWatcher.setFuture( mLabelingFuture );
emit renderingLayersFinished();
}
else
{

0 comments on commit 02ae886

Please sign in to comment.
You can’t perform that action at this time.