Skip to content

Commit e25aca8

Browse files
committed
Rename getSelected to is_selected.
1 parent 3b53e86 commit e25aca8

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/mapclient/core/workflow/workflowitems.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Item:
2727
def __init__(self):
2828
self._selected = True
2929

30-
def getSelected(self):
30+
def is_selected(self):
3131
return self._selected
3232

3333
def setSelected(self, selected):

src/mapclient/core/workflow/workflowscene.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def create_from(wf, name_identifiers, connections, location):
144144
meta_step.setPos(QtCore.QPointF(10 + i * 60, 10 + i * 60))
145145
wf.setValue('name', step.getName())
146146
wf.setValue('position', meta_step.getPos())
147-
wf.setValue('selected', meta_step.getSelected())
147+
wf.setValue('selected', meta_step.is_selected())
148148
wf.setValue('identifier', meta_step.getIdentifier())
149149
wf.setValue('unique_identifier', meta_step.getUniqueIdentifier())
150150

@@ -251,7 +251,7 @@ def saveState(self, ws):
251251
ws.setValue('source_uri', source_uri)
252252
ws.setValue('name', step.getName())
253253
ws.setValue('position', metastep.getPos())
254-
ws.setValue('selected', metastep.getSelected())
254+
ws.setValue('selected', metastep.is_selected())
255255
ws.setValue('identifier', identifier)
256256
ws.setValue('unique_identifier', metastep.getUniqueIdentifier())
257257
ws.beginWriteArray('connections')
@@ -262,7 +262,7 @@ def saveState(self, ws):
262262
ws.setValue('connectedFromIndex', connectionItem.sourceIndex())
263263
ws.setValue('connectedTo', stepList.index(connectionItem.destination()))
264264
ws.setValue('connectedToIndex', connectionItem.destinationIndex())
265-
ws.setValue('selected', connectionItem.getSelected())
265+
ws.setValue('selected', connectionItem.is_selected())
266266
connectionIndex += 1
267267
ws.endArray()
268268
nodeIndex += 1

src/mapclient/view/workflow/workflowgraphicsscene.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def update_model(self):
102102

103103
self.blockSignals(True)
104104
node.setPos(workflow_item.getPos())
105-
node.setSelected(workflow_item.getSelected())
105+
node.setSelected(workflow_item.is_selected())
106106
self.blockSignals(False)
107107

108108
meta_steps[workflow_item] = node
@@ -119,7 +119,7 @@ def update_model(self):
119119
# Again put the arc into the scene straight away so the scene will be valid
120120
QtWidgets.QGraphicsScene.addItem(self, arc)
121121
self.blockSignals(True)
122-
arc.setSelected(connection.getSelected())
122+
arc.setSelected(connection.is_selected())
123123
self.blockSignals(False)
124124

125125
self._previousSelection = self.selectedItems()

0 commit comments

Comments
 (0)