mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-27 23:26:44 +01:00
Progress indicator messages are now styled correctly again
This commit is contained in:
parent
d395d6bf67
commit
541039fe75
2 changed files with 2 additions and 6 deletions
|
|
@ -72,8 +72,6 @@ def __init__(self, *args):
|
|||
self.status = QLabel(self)
|
||||
self.status.setWordWrap(True)
|
||||
self.status.setAlignment(Qt.AlignHCenter|Qt.AlignTop)
|
||||
self.status.font().setBold(True)
|
||||
self.status.font().setPointSize(self.font().pointSize()+6)
|
||||
self.setVisible(False)
|
||||
|
||||
def start(self, msg=''):
|
||||
|
|
@ -85,7 +83,7 @@ def start(self, msg=''):
|
|||
self.ml.move(int((self.size().width()-self.ml.size().width())/2.), 0)
|
||||
self.status.resize(self.size().width(), self.size().height()-self.ml.size().height()-10)
|
||||
self.status.move(0, self.ml.size().height()+10)
|
||||
self.status.setText(msg)
|
||||
self.status.setText('<h1>'+msg+'</h1>')
|
||||
self.setVisible(True)
|
||||
self.movie.setPaused(False)
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ def __init__(self, *args):
|
|||
self.status = QLabel(self)
|
||||
self.status.setWordWrap(True)
|
||||
self.status.setAlignment(Qt.AlignHCenter|Qt.AlignTop)
|
||||
self.status.font().setBold(True)
|
||||
self.status.font().setPointSize(self.font().pointSize()+6)
|
||||
self.setVisible(False)
|
||||
|
||||
def start(self, msg=''):
|
||||
|
|
@ -47,7 +45,7 @@ def start(self, msg=''):
|
|||
self.ml.move(int((self.size().width()-self.ml.size().width())/2.), 0)
|
||||
self.status.resize(self.size().width(), self.size().height()-self.ml.size().height()-10)
|
||||
self.status.move(0, self.ml.size().height()+10)
|
||||
self.status.setText(msg)
|
||||
self.status.setText('<h1>'+msg+'</h1>')
|
||||
self.setVisible(True)
|
||||
self.movie.setPaused(False)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue