Skip to content
Permalink
Browse files

Added documentationstrings to new methods

  • Loading branch information
MieWinstrup authored and nyalldawson committed Apr 5, 2018
1 parent 924e2ec commit 98621d7cd0398e6ec49da80c1efb9a12d67451a7
@@ -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/;
@@ -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();
@@ -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;

@@ -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();

0 comments on commit 98621d7

Please sign in to comment.
You can’t perform that action at this time.