Skip to content

Commit 9132ebb

Browse files
author
Sandro Santilli
committed
Expose setGroupExpanded to python
1 parent 60c1e51 commit 9132ebb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

python/gui/qgslegendinterface.sip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ class QgsLegendInterface : QObject
8181
//! @note added in 1.5
8282
virtual void setGroupExpanded( int groupIndex, bool expand ) = 0;
8383

84+
//! Collapse or expand a layer
85+
//! @note added in 2.0
86+
virtual void setLayerExpanded( QgsMapLayer * ml, bool expand ) = 0;
87+
8488
//! Set the visibility of a group
8589
//! @note added in 1.5
8690
virtual void setGroupVisible( int groupIndex, bool visible ) = 0;

src/gui/qgslegendinterface.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ class GUI_EXPORT QgsLegendInterface : public QObject
113113
//! @note added in 1.5
114114
virtual void setGroupExpanded( int groupIndex, bool expand ) = 0;
115115

116+
//! Collapse or expand a layer
117+
//! @note added in 2.0
118+
virtual void setLayerExpanded( QgsMapLayer * ml, bool expand ) = 0;
119+
116120
//! Set the visibility of a group
117121
//! @note added in 1.5
118122
virtual void setGroupVisible( int groupIndex, bool visible ) = 0;

0 commit comments

Comments
 (0)