Preferences/ConfigurationPages/QtPage.py

branch
5_5_x
changeset 3847
4a946734fd27
parent 3621
15f23ed3f216
equal deleted inserted replaced
3844:6ba315c68a8b 3847:4a946734fd27
41 # set initial values 41 # set initial values
42 self.qt4TransEdit.setText(Preferences.getQt("Qt4TranslationsDir")) 42 self.qt4TransEdit.setText(Preferences.getQt("Qt4TranslationsDir"))
43 self.qt4PrefixEdit.setText(Preferences.getQt("QtToolsPrefix4")) 43 self.qt4PrefixEdit.setText(Preferences.getQt("QtToolsPrefix4"))
44 self.qt4PostfixEdit.setText(Preferences.getQt("QtToolsPostfix4")) 44 self.qt4PostfixEdit.setText(Preferences.getQt("QtToolsPostfix4"))
45 self.__updateQt4Sample() 45 self.__updateQt4Sample()
46 self.pyuicIndentSpinBox.setValue(Preferences.getQt("PyuicIndent"))
47 self.pyuicImportsCheckBox.setChecked(
48 Preferences.getQt("PyuicFromImports"))
46 49
47 def save(self): 50 def save(self):
48 """ 51 """
49 Public slot to save the Qt configuration. 52 Public slot to save the Qt configuration.
50 """ 53 """
51 Preferences.setQt("Qt4TranslationsDir", self.qt4TransEdit.text()) 54 Preferences.setQt("Qt4TranslationsDir", self.qt4TransEdit.text())
52 Preferences.setQt("QtToolsPrefix4", self.qt4PrefixEdit.text()) 55 Preferences.setQt("QtToolsPrefix4", self.qt4PrefixEdit.text())
53 Preferences.setQt("QtToolsPostfix4", self.qt4PostfixEdit.text()) 56 Preferences.setQt("QtToolsPostfix4", self.qt4PostfixEdit.text())
57 Preferences.setQt("PyuicIndent", self.pyuicIndentSpinBox.value())
58 Preferences.setQt("PyuicFromImports",
59 self.pyuicImportsCheckBox.isChecked())
54 60
55 @pyqtSlot() 61 @pyqtSlot()
56 def on_qt4TransButton_clicked(self): 62 def on_qt4TransButton_clicked(self):
57 """ 63 """
58 Private slot to handle the Qt4 translations directory selection. 64 Private slot to handle the Qt4 translations directory selection.

eric ide

mercurial