Tools/UIPreviewer.py

branch
5_0_x
changeset 898
f4e88e4354fe
parent 792
a13346916170
equal deleted inserted replaced
895:d8deb8c8e907 898:f4e88e4354fe
64 self.styleCombo.setObjectName("styleCombo") 64 self.styleCombo.setObjectName("styleCombo")
65 self.styleCombo.setEditable(False) 65 self.styleCombo.setEditable(False)
66 self.styleCombo.setToolTip(self.trUtf8("Select the GUI Theme")) 66 self.styleCombo.setToolTip(self.trUtf8("Select the GUI Theme"))
67 self.styleLayout.addWidget(self.styleCombo) 67 self.styleLayout.addWidget(self.styleCombo)
68 self.styleCombo.addItems(list(QStyleFactory().keys())) 68 self.styleCombo.addItems(list(QStyleFactory().keys()))
69 self.styleCombo.setCurrentIndex(\ 69 currentStyle = Preferences.Prefs.settings.value('UIPreviewer/style')
70 int(Preferences.Prefs.settings.value('UIPreviewer/style'))) 70 if currentStyle is not None:
71 self.styleCombo.setCurrentIndex(int(currentStyle))
71 72
72 styleSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) 73 styleSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
73 self.styleLayout.addItem(styleSpacer) 74 self.styleLayout.addItem(styleSpacer)
74 self.UIPreviewerLayout.addLayout(self.styleLayout) 75 self.UIPreviewerLayout.addLayout(self.styleLayout)
75 76

eric ide

mercurial