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
53
53
QAction *actionZoomToGroup( QgsMapCanvas *canvas, QObject *parent = 0 ) /Factory/;
54
54
55
55
QAction *actionMakeTopLevel( QObject *parent = 0 ) /Factory/;
56
+
56
57
QAction *actionMoveToTop( QObject *parent = 0 ) /Factory/;
58
+ %Docstring
59
+
60
+ .. seealso:: :py:func:`moveToTop`
61
+
62
+ .. versionadded:: 3.2
63
+ %End
57
64
QAction *actionGroupSelected( QObject *parent = 0 ) /Factory/;
58
65
59
66
QAction *actionMutuallyExclusiveGroup( QObject *parent = 0 ) /Factory/;
@@ -77,7 +84,14 @@ Action to enable/disable mutually exclusive flag of a group (only one child node
77
84
void zoomToLayer();
78
85
void zoomToGroup();
79
86
void makeTopLevel();
87
+
80
88
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
81
95
void groupSelected();
82
96
83
97
void mutuallyExclusiveGroup();
Original file line number Diff line number Diff line change @@ -62,6 +62,11 @@ class GUI_EXPORT QgsLayerTreeViewDefaultActions : public QObject
62
62
// TODO: zoom to selected
63
63
64
64
QAction *actionMakeTopLevel ( QObject *parent = nullptr ) SIP_FACTORY;
65
+
66
+ /* *
67
+ * \see moveToTop()
68
+ * \since QGIS 3.2
69
+ */
65
70
QAction *actionMoveToTop ( QObject *parent = nullptr ) SIP_FACTORY;
66
71
QAction *actionGroupSelected ( QObject *parent = nullptr ) SIP_FACTORY;
67
72
@@ -85,6 +90,12 @@ class GUI_EXPORT QgsLayerTreeViewDefaultActions : public QObject
85
90
void zoomToLayer ();
86
91
void zoomToGroup ();
87
92
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
+ */
88
99
void moveToTop ();
89
100
void groupSelected ();
90
101
You can’t perform that action at this time.
0 commit comments