change progress bar style early to prevent qpainterpath/arcto errors

This commit is contained in:
Damien Elmes 2009-02-19 15:50:29 +09:00
parent e03b0bf4f5
commit a405a73897

View file

@ -99,16 +99,16 @@ class StatusView(object):
self.combinedBar = QWidget() self.combinedBar = QWidget()
self.combinedBar.setLayout(vbox) self.combinedBar.setLayout(vbox)
self.combinedBar.setFixedWidth(50) self.combinedBar.setFixedWidth(50)
if QApplication.instance().style().objectName() != "plastique":
self.plastiqueStyle = QStyleFactory.create("plastique")
self.progressBar.setStyle(self.plastiqueStyle)
self.retentionBar.setStyle(self.plastiqueStyle)
self.addWidget(self.combinedBar, 0) self.addWidget(self.combinedBar, 0)
# timer # timer
self.addWidget(self.vertSep(), 0) self.addWidget(self.vertSep(), 0)
self.timer = QClickableLabel() self.timer = QClickableLabel()
self.timer.setText("00:00") self.timer.setText("00:00")
self.addWidget(self.timer) self.addWidget(self.timer)
if QApplication.instance().style().objectName() != "plastique":
self.plastiqueStyle = QStyleFactory.create("plastique")
self.progressBar.setStyle(self.plastiqueStyle)
self.retentionBar.setStyle(self.plastiqueStyle)
self.redraw() self.redraw()
self.timer.setShown(self.main.config['showTimer']) self.timer.setShown(self.main.config['showTimer'])