Skip to content

Commit e232817

Browse files
committedMar 25, 2019
add missing doc
1 parent 50f87c1 commit e232817

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
 

‎python/core/auto_additions/qgsmaplayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
QgsMapLayer.PluginLayer.__doc__ = ""
1010
QgsMapLayer.MeshLayer = QgsMapLayerType.MeshLayer
1111
QgsMapLayer.MeshLayer.__doc__ = "Added in 3.2"
12-
QgsMapLayerType.__doc__ = 'Types of layers that can be added to a map\n\n' + '* VectorLayer: ' + QgsMapLayerType.VectorLayer.__doc__ + '\n' + '* RasterLayer: ' + QgsMapLayerType.RasterLayer.__doc__ + '\n' + '* PluginLayer: ' + QgsMapLayerType.PluginLayer.__doc__ + '\n' + '* MeshLayer: ' + QgsMapLayerType.MeshLayer.__doc__
12+
QgsMapLayerType.__doc__ = 'Types of layers that can be added to a map\n\n.. versionadded:: 3.8\n\n' + '* VectorLayer: ' + QgsMapLayerType.VectorLayer.__doc__ + '\n' + '* RasterLayer: ' + QgsMapLayerType.RasterLayer.__doc__ + '\n' + '* PluginLayer: ' + QgsMapLayerType.PluginLayer.__doc__ + '\n' + '* MeshLayer: ' + QgsMapLayerType.MeshLayer.__doc__
1313
# --
1414
QgsMapLayer.LayerFlag.baseClass = QgsMapLayer
1515
QgsMapLayer.LayerFlags.baseClass = QgsMapLayer

‎scripts/sipify.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,7 @@ sub detect_non_method_member{
10101010
}
10111011
write_output("ENU4", "$LINE\n");
10121012
if ($is_scope_based eq "1") {
1013+
$COMMENT =~ s/\n/\\n/g;
10131014
if ( $ACTUAL_CLASS ne "" ){
10141015
push @OUTPUT_PYTHON, "$ACTUAL_CLASS.$enum_qualname.__doc__ = '$COMMENT\\n\\n' + " . join(" + '\\n' + ", @enum_members_doc) . "\n# --\n";
10151016
} else {

‎src/core/qgsmaplayer.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ class QPainter;
5757
#define QGSCLIPBOARD_MAPLAYER_MIME "application/qgis.maplayer"
5858

5959

60-
//! Types of layers that can be added to a map
60+
/**
61+
* \ingroup core
62+
* Types of layers that can be added to a map
63+
* \since QGIS 3.8
64+
*/
6165
enum class QgsMapLayerType SIP_MONKEYPATCH_SCOPEENUM_UNNEST( QgsMapLayer, LayerType ) : int
6266
{
6367
VectorLayer,

0 commit comments

Comments
 (0)
Please sign in to comment.