Skip to content

Commit 7b7c3e1

Browse files
committed
Clearer docs
1 parent 588a8fc commit 7b7c3e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gui/qgsmapcanvas.h

+4
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
277277
/**
278278
* Sets a map \a theme to show in the canvas. The theme name must match
279279
* a theme present in the associated project's QgsMapThemeCollection.
280+
* If an empty string is passed then the current theme association will be
281+
* cleared. The layers from the previously associated theme will remain
282+
* in the canvas, and a call to setLayers() may be necessary to define
283+
* which layers should be shown in the canvas.
280284
* @note added in QGIS 3.0
281285
* @see theme()
282286
*/

0 commit comments

Comments
 (0)