Add em tags around button title

to distinguish the button title better from the rest of the text, there should be something around it like <em> tags.
This commit is contained in:
Christian Gonzalez 2014-07-07 17:40:18 +02:00
parent 251aa384a7
commit 86121ef3c2

View File

@ -930,7 +930,7 @@ class Wizard(QWizard):
return QWizard.accept(self)
def set_finish_text(self, *args):
bt = unicode(self.buttonText(self.FinishButton)).replace('&', '')
bt = unicode("<em>" + self.buttonText(self.FinishButton) + "</em>").replace('&', '')
t = unicode(self.finish_page.finish_text.text())
if '%s' in t:
self.finish_page.finish_text.setText(t%bt)