Skip to content

Commit

Permalink
Added documentationstrings to new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MieWinstrup authored and nyalldawson committed Apr 5, 2018
1 parent 924e2ec commit 98621d7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/gui/layertree/qgslayertreeviewdefaultactions.sip.in
Expand Up @@ -53,7 +53,14 @@ Action to check a group and all its parents
QAction *actionZoomToGroup( QgsMapCanvas *canvas, QObject *parent = 0 ) /Factory/;

QAction *actionMakeTopLevel( QObject *parent = 0 ) /Factory/;

QAction *actionMoveToTop( QObject *parent = 0 ) /Factory/;
%Docstring

.. seealso:: :py:func:`moveToTop`

.. versionadded:: 3.2
%End
QAction *actionGroupSelected( QObject *parent = 0 ) /Factory/;

QAction *actionMutuallyExclusiveGroup( QObject *parent = 0 ) /Factory/;
Expand All @@ -77,7 +84,14 @@ Action to enable/disable mutually exclusive flag of a group (only one child node
void zoomToLayer();
void zoomToGroup();
void makeTopLevel();

void moveToTop();
%Docstring
Moves selected layer(s) and/or group(s) to the top of the layer panel
or the top of the group if the layer/group is placed within a group.

.. versionadded:: 3.2
%End
void groupSelected();

void mutuallyExclusiveGroup();
Expand Down
11 changes: 11 additions & 0 deletions src/gui/layertree/qgslayertreeviewdefaultactions.h
Expand Up @@ -62,6 +62,11 @@ class GUI_EXPORT QgsLayerTreeViewDefaultActions : public QObject
// TODO: zoom to selected

QAction *actionMakeTopLevel( QObject *parent = nullptr ) SIP_FACTORY;

/**
* \see moveToTop()
* \since QGIS 3.2
*/
QAction *actionMoveToTop( QObject *parent = nullptr ) SIP_FACTORY;
QAction *actionGroupSelected( QObject *parent = nullptr ) SIP_FACTORY;

Expand All @@ -85,6 +90,12 @@ class GUI_EXPORT QgsLayerTreeViewDefaultActions : public QObject
void zoomToLayer();
void zoomToGroup();
void makeTopLevel();

/**
* Moves selected layer(s) and/or group(s) to the top of the layer panel
* or the top of the group if the layer/group is placed within a group.
* \since QGIS 3.2
*/
void moveToTop();
void groupSelected();

Expand Down

0 comments on commit 98621d7

Please sign in to comment.