55 def __populateStyleCombo(self): |
55 def __populateStyleCombo(self): |
56 """ |
56 """ |
57 Private method to populate the style combo box. |
57 Private method to populate the style combo box. |
58 """ |
58 """ |
59 curStyle = Preferences.getUI("Style") |
59 curStyle = Preferences.getUI("Style") |
60 styles = sorted(list(QStyleFactory.keys())) |
60 styles = sorted(QStyleFactory.keys()) |
61 self.styleComboBox.addItem(self.tr('System'), "System") |
61 self.styleComboBox.addItem(self.tr('System'), "System") |
62 for style in styles: |
62 for style in styles: |
63 self.styleComboBox.addItem(style, style) |
63 self.styleComboBox.addItem(style, style) |
64 currentIndex = self.styleComboBox.findData(curStyle) |
64 currentIndex = self.styleComboBox.findData(curStyle) |
65 if currentIndex == -1: |
65 if currentIndex == -1: |