Added layerIsExpanded() to QgsLegendInterface