Skip to content

Commit

Permalink
Fixes #18375 - fix API break
Browse files Browse the repository at this point in the history
cherry-picked from 29f6884
  • Loading branch information
slarosa committed Mar 7, 2018
1 parent 9052bb3 commit 8bd39fb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,19 +235,19 @@ def run(item, action, mainwindow):
groupFaces = QgsLayerTreeGroup(u'Faces')
for layer in faceLayers:
nodeLayer = groupFaces.addLayer(layer)
nodeLayer.setVisible(Qt.Unchecked)
nodeLayer.setItemVisibilityChecked(False)
nodeLayer.setExpanded(False)

groupNodes = QgsLayerTreeGroup(u'Nodes')
for layer in nodeLayers:
nodeLayer = groupNodes.addLayer(layer)
nodeLayer.setVisible(Qt.Unchecked)
nodeLayer.setItemVisibilityChecked(False)
nodeLayer.setExpanded(False)

groupEdges = QgsLayerTreeGroup(u'Edges')
for layer in edgeLayers:
nodeLayer = groupEdges.addLayer(layer)
nodeLayer.setVisible(Qt.Unchecked)
nodeLayer.setItemVisibilityChecked(False)
nodeLayer.setExpanded(False)

supergroup = QgsLayerTreeGroup(u'Topology "%s"' % toponame)
Expand Down

0 comments on commit 8bd39fb

Please sign in to comment.