File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff 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();
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments