Skip to content

Commit

Permalink
Correctly render qgsMapRendererJob use case steps in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Sep 1, 2020
1 parent 97b56fe commit a7bf220
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions python/core/auto_generated/qgsmaprendererjob.sip.in
Expand Up @@ -25,11 +25,11 @@ amount of time.

Common use case:

# prepare QgsMapSettings with rendering configuration (extent, layer, map size, ...)
# create QgsMapRendererJob subclass with QgsMapSettings instance
# connect to job's :py:func:`~finished` signal
# call :py:func:`~start`. Map rendering will start in background, the function immediately returns
# at some point, slot connected to :py:func:`~finished` signal is called, map rendering is done
1. Prepare QgsMapSettings with rendering configuration (extent, layer, map size, ...)
2. Create QgsMapRendererJob subclass with QgsMapSettings instance
3. Connect to job's :py:func:`~finished` signal
4. Call :py:func:`~start`. Map rendering will start in background, the function immediately returns
5. At some point, slot connected to :py:func:`~finished` signal is called, map rendering is done

It is possible to cancel the rendering job while it is active by calling :py:func:`~cancel` function.

Expand Down
10 changes: 5 additions & 5 deletions src/core/qgsmaprendererjob.h
Expand Up @@ -167,11 +167,11 @@ struct LabelRenderJob
*
* Common use case:
*
* # prepare QgsMapSettings with rendering configuration (extent, layer, map size, ...)
* # create QgsMapRendererJob subclass with QgsMapSettings instance
* # connect to job's finished() signal
* # call start(). Map rendering will start in background, the function immediately returns
* # at some point, slot connected to finished() signal is called, map rendering is done
* 1. Prepare QgsMapSettings with rendering configuration (extent, layer, map size, ...)
* 2. Create QgsMapRendererJob subclass with QgsMapSettings instance
* 3. Connect to job's finished() signal
* 4. Call start(). Map rendering will start in background, the function immediately returns
* 5. At some point, slot connected to finished() signal is called, map rendering is done
*
* It is possible to cancel the rendering job while it is active by calling cancel() function.
*
Expand Down

0 comments on commit a7bf220

Please sign in to comment.