File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ class QgsLegendInterface : QObject
81
81
//! @note added in 1.5
82
82
virtual void setGroupExpanded( int groupIndex, bool expand ) = 0;
83
83
84
+ //! Collapse or expand a layer
85
+ //! @note added in 2.0
86
+ virtual void setLayerExpanded( QgsMapLayer * ml, bool expand ) = 0;
87
+
84
88
//! Set the visibility of a group
85
89
//! @note added in 1.5
86
90
virtual void setGroupVisible( int groupIndex, bool visible ) = 0;
Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ class GUI_EXPORT QgsLegendInterface : public QObject
113
113
// ! @note added in 1.5
114
114
virtual void setGroupExpanded ( int groupIndex, bool expand ) = 0;
115
115
116
+ // ! Collapse or expand a layer
117
+ // ! @note added in 2.0
118
+ virtual void setLayerExpanded ( QgsMapLayer * ml, bool expand ) = 0;
119
+
116
120
// ! Set the visibility of a group
117
121
// ! @note added in 1.5
118
122
virtual void setGroupVisible ( int groupIndex, bool visible ) = 0;
You can’t perform that action at this time.
0 commit comments