eric6/E5Gui/E5MainWindow.py

changeset 8205
4a0f1f896341
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8204:fd477cded1c1 8205:4a0f1f896341
37 defaults of the given style (string) 37 defaults of the given style (string)
38 """ 38 """
39 # step 1: set the style 39 # step 1: set the style
40 style = None 40 style = None
41 if styleName != "System" and styleName in QStyleFactory.keys(): 41 if styleName != "System" and styleName in QStyleFactory.keys():
42 # __IGNORE_WARNING_Y118__
42 style = QStyleFactory.create(styleName) 43 style = QStyleFactory.create(styleName)
43 if style is None: 44 if style is None:
44 style = QStyleFactory.create(self.defaultStyleName) 45 style = QStyleFactory.create(self.defaultStyleName)
45 if style is not None: 46 if style is not None:
46 QApplication.setStyle(style) 47 QApplication.setStyle(style)

eric ide

mercurial