Skip to content

Commit 98621d7

Browse files
MieWinstrupnyalldawson
authored andcommittedApr 5, 2018
Added documentationstrings to new methods
1 parent 924e2ec commit 98621d7

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
 

‎python/gui/layertree/qgslayertreeviewdefaultactions.sip.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ Action to check a group and all its parents
5353
QAction *actionZoomToGroup( QgsMapCanvas *canvas, QObject *parent = 0 ) /Factory/;
5454

5555
QAction *actionMakeTopLevel( QObject *parent = 0 ) /Factory/;
56+
5657
QAction *actionMoveToTop( QObject *parent = 0 ) /Factory/;
58+
%Docstring
59+
60+
.. seealso:: :py:func:`moveToTop`
61+
62+
.. versionadded:: 3.2
63+
%End
5764
QAction *actionGroupSelected( QObject *parent = 0 ) /Factory/;
5865

5966
QAction *actionMutuallyExclusiveGroup( QObject *parent = 0 ) /Factory/;
@@ -77,7 +84,14 @@ Action to enable/disable mutually exclusive flag of a group (only one child node
7784
void zoomToLayer();
7885
void zoomToGroup();
7986
void makeTopLevel();
87+
8088
void moveToTop();
89+
%Docstring
90+
Moves selected layer(s) and/or group(s) to the top of the layer panel
91+
or the top of the group if the layer/group is placed within a group.
92+
93+
.. versionadded:: 3.2
94+
%End
8195
void groupSelected();
8296

8397
void mutuallyExclusiveGroup();

‎src/gui/layertree/qgslayertreeviewdefaultactions.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ class GUI_EXPORT QgsLayerTreeViewDefaultActions : public QObject
6262
// TODO: zoom to selected
6363

6464
QAction *actionMakeTopLevel( QObject *parent = nullptr ) SIP_FACTORY;
65+
66+
/**
67+
* \see moveToTop()
68+
* \since QGIS 3.2
69+
*/
6570
QAction *actionMoveToTop( QObject *parent = nullptr ) SIP_FACTORY;
6671
QAction *actionGroupSelected( QObject *parent = nullptr ) SIP_FACTORY;
6772

@@ -85,6 +90,12 @@ class GUI_EXPORT QgsLayerTreeViewDefaultActions : public QObject
8590
void zoomToLayer();
8691
void zoomToGroup();
8792
void makeTopLevel();
93+
94+
/**
95+
* Moves selected layer(s) and/or group(s) to the top of the layer panel
96+
* or the top of the group if the layer/group is placed within a group.
97+
* \since QGIS 3.2
98+
*/
8899
void moveToTop();
89100
void groupSelected();
90101

0 commit comments

Comments
 (0)