mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Merge branch 'progress_bar_wider' of https://github.com/remggo/calibre
This commit is contained in:
commit
f3a32994ea
@ -92,16 +92,18 @@ class MyBlockingBusy(QDialog): # {{{
|
||||
self.font.setPointSize(self.font.pointSize() + 8)
|
||||
self.msg.setFont(self.font)
|
||||
self.current_step_pb = QProgressBar(self)
|
||||
self.current_step_pb.setFormat(_("Current step progress: %p %"))
|
||||
if self.selected_options > 1:
|
||||
# More than one Option needs to be done! Add Overall ProgressBar
|
||||
self.overall_pb = QProgressBar(self)
|
||||
self.overall_pb.setRange(0, self.selected_options)
|
||||
self.overall_pb.setValue(0)
|
||||
self._layout.addWidget(self.overall_pb, 0, Qt.AlignHCenter)
|
||||
self.overall_pb.setFormat(_("Step %v/%m"))
|
||||
self._layout.addWidget(self.overall_pb)
|
||||
self._layout.addSpacing(15)
|
||||
self.current_option = 0
|
||||
self.current_step_value = 0
|
||||
self._layout.addWidget(self.current_step_pb, 0, Qt.AlignHCenter)
|
||||
self._layout.addWidget(self.current_step_pb)
|
||||
self._layout.addSpacing(15)
|
||||
self._layout.addWidget(self.msg, 0, Qt.AlignHCenter)
|
||||
self.setWindowTitle(window_title + '...')
|
||||
|
Loading…
x
Reference in New Issue
Block a user