Skip to content
Permalink
Browse files

Identation

  • Loading branch information
nyalldawson committed Mar 6, 2020
1 parent 034b875 commit 56610002e30a9ca3f4fc34ae2d3f0385bee01322
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/modeler/ModelerDialog.py
@@ -132,7 +132,7 @@ def runModel(self):
if len(self.model().childAlgorithms()) == 0:
self.messageBar().pushMessage("", self.tr(
"Model doesn't contain any algorithm and/or parameter and can't be executed"), level=Qgis.Warning,
duration=5)
duration=5)
return

dlg = AlgorithmDialog(self.model().create(), parent=self)
@@ -205,7 +205,7 @@ def saveModel(self, saveAs):
if saveAs:
self.messageBar().pushMessage("", self.tr("Model was correctly saved to <a href=\"{}\">{}</a>").format(
QUrl.fromLocalFile(filename).toString(), QDir.toNativeSeparators(filename)), level=Qgis.Success,
duration=5)
duration=5)
else:
self.messageBar().pushMessage("", self.tr("Model was correctly saved"), level=Qgis.Success, duration=5)

@@ -377,8 +377,8 @@ def getPositionForAlgorithmItem(self):
maxX = max([alg.position().x() for alg in list(self.model().childAlgorithms().values())])
maxY = max([alg.position().y() for alg in list(self.model().childAlgorithms().values())])
newX = min(MARGIN + BOX_WIDTH + maxX, self.CANVAS_SIZE - BOX_WIDTH)
newY = min(MARGIN + BOX_HEIGHT + maxY, self.CANVAS_SIZE -
BOX_HEIGHT)
newY = min(MARGIN + BOX_HEIGHT + maxY, self.CANVAS_SIZE
- BOX_HEIGHT)
else:
newX = MARGIN + BOX_WIDTH / 2
newY = MARGIN * 2 + BOX_HEIGHT + BOX_HEIGHT / 2

0 comments on commit 5661000

Please sign in to comment.
You can’t perform that action at this time.