Skip to content
Permalink
Browse files

Merge pull request #2121 from slarosa/algname_messagebar

[processing] add algorithm name to messagebar while running
  • Loading branch information
volaya committed Jun 8, 2015
2 parents 77bf10b + 941107d commit cce3bb206e997b870514a8d617c8c23270fce387
@@ -347,7 +347,7 @@ def runAlgorithm(algOrName, onFinish, *args):

progress = None
if iface is not None :
progress = MessageBarProgress()
progress = MessageBarProgress(alg.name)
ret = runalg(alg, progress)
if onFinish is not None and ret:
onFinish(alg, progress)
@@ -33,9 +33,9 @@

class MessageBarProgress:

def __init__(self):
def __init__(self, algname=None):
self.progressMessageBar = \
iface.messageBar().createMessage(self.tr('Executing algorithm'))
iface.messageBar().createMessage(self.tr('Executing algorithm <i>{0}</i>'.format(algname if algname else '')))
self.progress = QProgressBar()
self.progress.setMaximum(100)
self.progress.setAlignment(Qt.AlignLeft | Qt.AlignVCenter)

0 comments on commit cce3bb2

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