Skip to content
Permalink
Browse files

[processing] add algorithm name to messagebar while running

  • Loading branch information
slarosa committed Jun 8, 2015
1 parent 77bf10b commit 941107dfa48ae52044338d35b3226e728166e5a8
@@ -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 941107d

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